What the keyboard does not have are keys to pause and skip Music, so I decided to use the Browser_Home key together with Volume_Up, -Down and -Mute to fire Media_Next, -Prev and -Play_Pause.
Problem is, the following code does only work occasionally:
Code: Select all
Browser_Home::Return ; Prevents Browser from opening
Browser_Home & Volume_Down::
send {Media_Prev} ; Skips to previous media
Return
Browser_Home & Volume_Up::
Send {Media_Next} ; Skips to next media
Return
Browser_Home & Volume_Mute::
Send {Media_Play_Pause} ; Pauses respectively plays media
Return
Then it happens that the functions are kind of inverted: Holding Browser_Home and pressing Volume_Up the Volume goes up while without Browser_Home the song is skipped.
Also from time to time pressing Browser_Home alone opens the browser, which I wanted the script to prevent.
Apparently Browser_Home is fired as soon as the button is pressed, not on release, maybe thats important