geekhack
geekhack Projects => Making Stuff Together! => Topic started by: ShawnMeg on Sat, 06 December 2014, 15:58:54
-
I have this converter using Soarer's for my Model F. I want to use the F19-F21 keys for previous track, play/pause, and next track for Windows Media player, respectively. Below is the relevant portion in my .sc file. Everything works, but the F19-F21 keys. Any help would be appreciated.
remapblock
EXTRA_F1 MEDIA_MY_COMPUTER
EXTRA_F2 MEDIA_WWW_HOME
EXTRA_F9 MEDIA_CALCULATOR
EXTRA_F10 LGUI
F13 ESC
F14 SYSTEM_SLEEP
F19 MEDIA_PREV_TRACK
F20 MEDIA_PLAY_PAUSE
F21 MEDIA_NEXT_TRACK
F22 MEDIA_VOLUME_DOWN
F23 MEDIA_VOLUME_UP
F24 MEDIA_MUTE
EXTRA_SYSRQ PAD_SLASH
CAPS_LOCK UNASSIGNED
endblock
-
Have you confirmed that F19-F21 are actually generating a Keypress by listening to HID_listen and then looking the code up to make sure that for some weird reason those keys aren't outputting different codes?
If you have done that, then maybe windows media player isn't setup to watch for those MEDIA HID codes and respond by changing tracks.
Do you have another keyboard with media keys? Do they cause media player to respond to those actions?
-
Yes, I used hid_listen to get the scan codes, and I confirmed them on the code list from the Soarer's firmware download. I have the vol up/down/mute on the F22-F24 keys. Perhaps, the media_prev_track, etc simply don't work for Windows Media Player.
-
You might try a different keyboard that has media keys and see if they work. If they do, then I would check to see what codes are coming out of that keyboard. HID_Listen won't work for that, but this program will:
http://delphiforfun.org/programs/utilities/KeyCodes.htm (http://delphiforfun.org/programs/utilities/KeyCodes.htm)
That way you can see if media player is responding to a different code, or no code at all.
I would also check the settings in media player to see if that might be assigned to a different key or something like that.
-
You might try a different keyboard that has media keys and see if they work. If they do, then I would check to see what codes are coming out of that keyboard. HID_Listen won't work for that, but this program will:
http://delphiforfun.org/programs/utilities/KeyCodes.htm (http://delphiforfun.org/programs/utilities/KeyCodes.htm)
That way you can see if media player is responding to a different code, or no code at all.
I would also check the settings in media player to see if that might be assigned to a different key or something like that.
Thanks for the suggestions. I don't have any other keyboard with media keys. I have an infrared received and remote that will advance a track, go back a track etc. When I'm on the Windows Media Page, Ctrl-F for forward (next track) and Ctrl-B for back track. However, once my cursor is on another window, those key combos will not work. I'll see if I can get hold of a keyboard with those media keys.
-
Check out this link: http://www.howtogeek.com/howto/19356/add-global-hotkeys-to-windows-media-player/ (http://www.howtogeek.com/howto/19356/add-global-hotkeys-to-windows-media-player/)
Its a small plugin that is supposed to add global hot-keys to windows media player so you should be able to define your global-hot-keys and then just make a macro in your soarer config file.
-Ezra
-
Check out this link: http://www.howtogeek.com/howto/19356/add-global-hotkeys-to-windows-media-player/ (http://www.howtogeek.com/howto/19356/add-global-hotkeys-to-windows-media-player/)
Its a small plugin that is supposed to add global hot-keys to windows media player so you should be able to define your global-hot-keys and then just make a macro in your soarer config file.
-Ezra
Thanks for the tip. I used the plug-in, made some macros and it works well.