hold button to run script Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Guest

hold button to run script  Topic is solved

07 May 2018, 01:44

Hello, i did try to read myself. but my lacking skills in english makes it hard to understand.
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
Mod edit: Added code tags.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: sofista and 154 guests