https://www.autohotkey.com/docs/v1/lib/_If.htm#ExVolume Is there anyway to use this example without the gui being created?
Code: Select all
#If MouseIsOver("ahk_class Shell_TrayWnd")
WheelUp::Send {Volume_Up}
WheelDown::Send {Volume_Down}
MouseIsOver(WinTitle) {
MouseGetPos,,, Win
return WinExist(WinTitle . " ahk_id " . Win)
}