Mouse volume

Control mouse volume with mouse wheel over taskbar
mail@pastecode.io avatar
unknown
autohotkey
2 years ago
355 B
398
Indexable
#If MouseIsInvolumecontrolarea() and not WinActive("ahk_class TscShellContainerClass")
   WheelUp::Send {Volume_Up}
   WheelDown::Send {Volume_Down}
#If

MouseIsInvolumecontrolarea()
{  
   CoordMode, Mouse, Screen
   MouseGetPos, xpos, ypos
   if (ypos > A_ScreenHeight-60 and xpos <= A_ScreenWidth-500)
	   Return 1
   else
	   Return 0
}