I'm using an apple keyboard with windows 7. I'd like the function keys labelled with 'media' functions (prev, pause/play, next, mute, vol-, vol+) to work like the equivalent keys on a windows keyboard.
I've tried this autohotkey script:
F7::Media_Prev
F8::Media_Play_Pause
F9::Media_Next
F10::Volume_Mute
F11::Volume_Down
F12::Volume_Up
Looking at the key history the keys seem to be remapped as expected, but they don't have any effect.
A working (i.e. all keys work as expected and trigger the appropriate media function) windows media keyboard looks like this:
VK SC Type Up/Dn Elapsed Key Window
------------------------------------------------------------------------------------
B3 122 a d 32.79 Media_Play_Pause
B3 122 a u 0.14 Media_Play_Pause
B2 124 a d 0.61 Media_Stop
B2 124 a u 0.17 Media_Stop
AF 130 a d 0.58 Volume_Up
AF 130 a u 0.17 Volume_Up
AE 12E a d 0.42 Volume_Down
AE 12E a u 0.16 Volume_Down
B1 110 a d 0.87 Media_Prev
B1 110 a u 0.14 Media_Prev
B0 119 a d 0.30 Media_Next
B0 119 a u 0.11 Media_Next
AD 120 a d 1.56 Volume_Mute
AD 120 a u 0.13 Volume_Mute
Using the script referenced above I see this from the apple keyboard:
VK SC Type Up/Dn Elapsed Key Window
------------------------------------------------------------------------------------
B1 010 i d 0.00 Media_Prev
76 041 h u 0.09 F7
B1 010 i u 0.00 Media_Prev
77 042 h d 0.20 F8
B3 022 i d 0.00 Media_Play_Pause
77 042 h u 0.08 F8
B3 022 i u 0.00 Media_Play_Pause
78 043 h d 0.20 F9
B0 019 i d 0.00 Media_Next
78 043 h u 0.09 F9
B0 019 i u 0.00 Media_Next
79 044 h d 0.22 F10
AD 020 i d 0.00 Volume_Mute
79 044 h u 0.09 F10
AD 020 i u 0.00 Volume_Mute
7A 057 h d 0.19 F11
AE 02E i d 0.00 Volume_Down
7A 057 h u 0.09 F11
AE 02E i u 0.00 Volume_Down
7B 058 h d 0.65 F12
AF 030 i d 0.00 Volume_Up
7B 058 h u 0.08 F12
AF 030 i u 0.00 Volume_Up
Any idea why this isn't working?