I think @rsbrux needs a way to send "Multimedia" keys from his remote. For example, multimedia key code $E2 is (supposedly) the Mute function. More info below:
vickyg2003 wrote:My current scheme doesn't work for the following codes, but really how much do you really want to type with a remote?
mdavej wrote:Code: Select all
80 - Keyboard Volume Up
81 - Keyboard Volume Dn
...
Agreed, everything listed above $81 was pretty useless, at least for English keyboards, but $80 and $81 have obvious importance. There are no standard keyboard keys that perform the volume up/down function. These keys were added by Microsoft long after the PS/2 keyboards became standard on PCs.
I'm necro'ing this old post because it seems relevant to the recent discussion.
The Kodi.wiki article linked in the quoted post also lists some more high-bit functions.
Edit: On further reading, it turns out there are
two types of keys: there are "normal" keys, the kind the MCE keyboard upgrade generates flawlessly, and also "multimedia" keys, which we haven't figured out how to send (yet)! As discovered, "normal" keys are 8 bits plus a 4-bit modifier for the shift state. All but the two listed above actually fit in 7 bits.
"Multimedia" keys have their own key codes, and can go above $FF. Here are the multimedia keys listed at the Kodi.wiki:
Code: Select all
Code Action
0B0 sends WM_APPCOMMAND 46 - play
0B1 sends WM_APPCOMMAND 47 - pause
0B2 sends WM_APPCOMMAND 48 - record
0B3 sends WM_APPCOMMAND 49 - fast forward
0B4 sends WM_APPCOMMAND 50 - rewind
0B5 sends keypress VK_MEDIA_NEXT_TRACK
0B6 sends keypress VK_MEDIA_PREV_TRACK
0B7 sends keypress VK_MEDIA_STOP
0CD sends keypress VK_MEDIA_PLAY_PAUSE
0E2 sends keypress VK_VOLUME_MUTE
0E5 sends WM_APPCOMMAND 20 - toggle bass boost
0E9 sends keypress VK_VOLUME_UP
0EA sends keypress VK_VOLUME_DOWN
152 sends WM_APPCOMMAND 21 - increase bass
153 sends WM_APPCOMMAND 19 - decrease bass
154 sends WM_APPCOMMAND 23 - increase treble
155 sends WM_APPCOMMAND 22 - decrease treble
183 sends keypress VK_LAUNCH_MEDIA_SELECT
18A sends keypress VK_LAUNCH_MAIL (Opens default mail app on Windows)
192 sends keypress VK_LAUNCH_APP2 (Opens Calculator on Windows)
194 sends keypress VK_LAUNCH_APP1 (Opens [My] Computer on Windows)
209 "Info" (appears to be mouse-related)
The following interact with the default Web browser on Windows:
221 sends keypress VK_BROWSER_SEARCH
223 sends keypress VK_BROWSER_HOME
224 sends keypress VK_BROWSER_BACK
225 sends keypress VK_BROWSER_FORWARD
226 sends keypress VK_BROWSER_STOP
227 sends keypress VK_BROWSER_REFRESH
22A sends keypress VK_BROWSER_FAVORITES
Don't worry too much about the WM_... and VK_... labels; those are Windows message codes unrelated to the OBCs on the left. But the functions they perform should be clear from the above. Note that OBC $CD is a play/pause toggle, while $B0 and $B1 are discrete Play and Pause functions. Also, multimedia functions $E9 and $EA appear to be redundant with "regular" keys $80 and $81, so we may not need $80 or $81. My MCE remote appears to send $E9 and $EA.
Depending on the software you're running, more of those may be redundant. For example, in Windows Media Center,
Ctrl-Shift-B is equivalent to Rewind,
Ctrl-Shift-F is equivalent to Fast Forward, and
Ctrl-R is equivalent to Record, so you don't need $B2-$B4 above. I would try both codes in MediaPortal. I'd expect it to use the same codes as WMC for compatibility with MCE remotes, but you never know.