Code: Select all
toggle := 0
F1::
MouseGetPos, MouseX, MouseY
Click, Right
if toggle := !toggle
gosub, MoveTheMouse
else
SetTimer, MoveTheMouse, off
return
MoveTheMouse:
MouseMove, 582, 256
Click
SetTimer, MoveTheMouse, -3000 ; every 3 seconds
MouseMove, %MouseX%, %MouseY%
Click, Right
return
My issue here is the "SetTimer,MoveTheMouse -3000 ;every 3 seconds. As I would want this to be "randomized" between, let's say 10000MS to 40000MS.
And, I've once downloaded a script for FFXIV where it supposedly kept clicking certain buttons trying to buy a house. But the AHK did this, with the game minimized without interfering with my keyboard, is there also a way to do the same here?.