I need help
it is necessary that the code runs on the u button
and the code itself presses the left mouse button 30 times every second
Help with code
Re: Help with code
Code: Select all
cps = 30
u::
SetMouseDelay, 0
start := A_TickCount, cliks := 0
While GetKeyState("u", "P") {
Click
Sleep, start - A_TickCount + 1000 * ++cliks / cps
ToolTip, % "CPS = " Round(1000 * cliks / (A_TickCount - start))
}
Return
-
- Posts: 2
- Joined: 24 May 2022, 11:44
Re: Help with code
if i need more time before each click, what i need to increase
Re: Help with code
To change clicks per second, you can alter the first line (cps).