Hello everyone who needs help writing a very simple script, the task is simple, you need the script
by pressing F6, it began to work, hovered along the coordinates (x2886 y583) and pressed the left key on the mouse and waited 7 seconds, and later moved to the second coordinates (x2442 y715), pressed and waited 10 seconds, and so that the script would work in a circle until again press F6
Help with a simple ahk script
Re: Help with a simple ahk script
Code: Select all
#MaxThreadsPerHotkey 2
F6::
on := !on
While on {
Click, 2886 583
Loop, 14
Sleep, 500 * on
Until !on
If on
Click, 2442 715
Loop, 20
Sleep, 500 * on
Until !on
}
Return
Re: Help with a simple ahk script
Thank you very much for your help, is it possible to add a looped button press (E) by pressing F7 to this script?
Re: Help with a simple ahk script
Code: Select all
F7::SetTimer, F7 Up, % (f7 := !f7) ? 10 : "Off"
F7 Up::Send % f7 ? "e" : ""
Who is online
Users browsing this forum: Bing [Bot] and 135 guests