Hi!
This is my first script!.
I wanted to have some easy access hotkeys for iTunes and Spotify while playing Counter-Strike: Source, so i could change song, turn down the volume and play/pause the song. So it turned out to this
Download
Hotkey-list:
Spotify:
Play/pause = Alt + Numpad 5
Previous/next song = Alt + Numpad 4/6
Volume up/down = Alt + Numpad 8/2
iTunes:
Play/pause = Ctrl + Numpad 5
Previous/next song = Ctrl + Numpad 4/6
Volume up/down = Ctrl + Numpad 8/2
;________________________________________________________________________________
; Volume up "Alt + Numpad 8" ; Spotify
!numpad8::
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow ; Spotify
return
; Spotify
; Volume down "Alt + Numpad 2"
!numpad2:: ; Spotify
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow
return ; Spotify
; Previous track "Alt + Numpad 4" ; Spotify
!numpad4::
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow ; Spotify
return
; Spotify
; Next track "Alt + Numpad 6"
!numpad6:: ; Spotify
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
return ; Spotify
; Play/pause "Alt + Numpad 5" ; Spotify
!numpad5::
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow ; Spotify
return
; Spotify
;________________________________________________________________________________
;________________________________________________________________________________
;________________________________________________________________________________
; Volume up "Ctrl + Numpad 8" ; iTunes
^numpad8::
ControlSend , ahk_parent, ^{up}, iTunes ahk_class iTunes ; iTunes
return
; iTunes
; Volume down "Ctrl + Numpad 2"
^numpad2:: ; iTunes
ControlSend , ahk_parent, ^{down}, iTunes ahk_class iTunes
return ; iTunes
; Previous track "Ctrl + Numpad 4" ; iTunes
^numpad4::
ControlSend , ahk_parent, ^{left}, iTunes ahk_class iTunes ; iTunes
return
; iTunes
; Next track "Ctrl + Numpad 6"
^Numpad6:: ; iTunes
ControlSend , ahk_parent, ^{right}, iTunes ahk_class iTunes
return ; iTunes
; Play/pause "Ctrl + Numpad 5" ; iTunes
^numpad5::
ControlSend , ahk_parent, ^{space}, iTunes ahk_class iTunes ; iTunes
return
; iTunes
;________________________________________________________________________________




