Mouse volume

Control mouse volume with mouse wheel over taskbar
mail@pastecode.io avatar
unknown
autohotkey
a year ago
355 B
210
Indexable
Never
#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
}