#g::
; Controls
; Volume Down Fade 1
; Volume Up Fade 2
;
2::
DetectHiddenWindows,On
Loop 10
{
ControlSend, ahk_parent, ^{up}, iTunes ahk_class iTunes
PostMessage, 0x111, 32815, 0,, ahk_class WMPlayerApp
Sleep, 500
}
return
1::
DetectHiddenWindows,On
Loop 10
{
ControlSend, ahk_parent, ^{down}, iTunes ahk_class iTunes
PostMessage, 0x111, 32816, 0,, ahk_class WMPlayerApp
Sleep, 500
}
return
Just fyi, I have never used autohotkey before and have little to no programming experience.
I hobbled this together from various places on the interweb.
Beats working!
Edit: You might want to mess around with the sleep values to get the fade you want.
Also, apparently it works with itunes too.
You ought to be able to just paste it into your existing script at the end.