My PC has some buttons on the hardware for controlling music players: Previous, Play/Pause, Next, and Stop. I'd like to map a few of these buttons to AHK, can someone help me?
1) 'Play/Pause' to be toggled when Ctrl+Alt are pressed
2) 'Next' when Alt+Middle-click are pressed
3) 'Previous' when Ctrl+Middle-click are pressed
Can i control the music player with AHK?
Re: Can i control the music player with AHK?
Code: Select all
LCtrl & LAlt:: Send {Media_Play_Pause}
!MButton:: Send {Media_Next}
Re: Can i control the music player with AHK?
Thanks for your help :]
Re: Can i control the music player with AHK?
I use this code, it only works if the player window is present,
Code: Select all
;Key maping for windows media player and Groove Music
#IfWinExist (Windows Media Player|Groove Music)
LCtrl & LAlt:: Send {Media_Play_Pause}
!MButton:: Send {Media_Next}
#IfWinExist
Who is online
Users browsing this forum: ymnaren and 136 guests