-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media commands Win10 #37
Comments
First, not all apps respond to the VK_MEDIA_xxx keys. Second, whatever app needs to be in the forground for these VK codes to work (pre-Win7 this was not the case IIRC). So, create a new command like this: <setforegroundwindow cmd="mplayer" enabled="true" classname="vlc" appname="vlc" /> Then send:
Note, VLC does not respond to VK_PLAY. You have to send VK_SPACE. You can change VLC's keyboard mapping in it's Preferences dialog. I could not figure out what appname to use to get Windows' Media Player to go to foreground. I thought it would be |
This activates Windows Media Player:
however, none of the
|
Actually, this works too:
|
Thank you for your suggestions. I was assuming that VK_MEDIA_PLAY_PAUSE would emulate the media button press on the keyboard. Thus, the application registered on the OS level, as an active player, will be paused/played. I'm looking for a solution, which will work for any media sources (Chrome web player, VLC, Netflix app, Kodi...). The next step would be to test if the actual hardware play/pause button will work and if yes, then emulate it. |
IIRC before Win10, MCEC did emulate |
Describe the bug
There's a high probability that I'm missing something but after weeks I'm desperate. I cannot get working keys for media commands - VK_MEDIA_PLAY_PAUSE, VK_PLAY, VK_PAUSE. Any help is appreciated. Thanks in advance.
Other commands like VK_VOLUME_UP, VK_VOLUME_DOWN, VK_ESCAPE works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Media should pause, nothing happens.
Screenshots
This is the machine where MCE runs after issuing VK_VOLUME_UP, so the Windows recognizes playing media:
After issuing a pause command nothing happens, Windows media control doesn't show up.
Version Information
Snippets from the log
Desktop (please complete the following information):
ThinkPad W530 notebook with closed lid and connected to the projector via HDMI.
Additional context
I have tested pausing with VLC Media Player, Kodi, and Chrome playing media.
The text was updated successfully, but these errors were encountered: