I would like this code to get run when im holding down mouse4
thanks
Code: Select all
mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
mouseXY(-10,0) ;Change this value to your preference
Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
mouseXY(10,0) ;Change this value to your preference
Sleep 5 ;Change this value to your preference
}
return