Simple script
Simple script
Hey guys, could any one make a script binding the first side mouse button (forward) to a action? The action would be that while the side button is pressed it will click the left mouse button key over and over again with an interval of 0.25 seconds?
Re: Simple script
Code: Select all
xbutton2:: ;generally the webpage forward side button, xbutton1 is backward
while(GetKeyState("xbutton2","P")) { ;while xbutton2 is physically held down, loop
click
sleep 250 ;250 ms = 1/4th a second
}
return ;if xbutton2 is let go, the script breaks the while loop and returns to idle
Some of my AHK programs: 3D Voxel Game - Platformer Game
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
Who is online
Users browsing this forum: Google [Bot], imstupidpleshelp, jaka1, OrangeCat and 163 guests