Loop clicking question Topic is solved

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

Loop clicking question

24 Dec 2015, 05:37

Hey all! I'm having issues creating a script to loop for me. I'm not very tech savvy nor know my way around ahk so any help would be greatly appreciated.

The script is

F::click
Return
D::mousemove, 0, 30, 1,R
Return


K::click
Return
L::mousemove, 0, -30, 1,R
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Loop clicking question

24 Dec 2015, 09:51

Is this what you are looking for? It will very quickly cycle through all 4 of the commands you listed in sequence for as long as you hold the f key down. If this is not what you want, please provide some more detail on what you are looking for.

Code: Select all

f::
While GetKeyState("f", "P")
{
    Click
    MouseMove, 0, 30, 1, R
    Click
    MouseMove, 0, -30, 1, R
}
Return
Morsmortus

Re: Loop clicking question

24 Dec 2015, 15:27

Yes! I'm looking for a script to continuesly click between the two keys infinitely. I input that code and it just clicks one space without looking between two keys, anything to add to add in the second space?
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Loop clicking question

25 Dec 2015, 17:25

It is most likely going too quickly for the program you are using it with. Try this instead...

Code: Select all

f::
While GetKeyState("f", "P")
{
    Click
    MouseMove, 0, 30, 10, R
    Sleep 50
    Click
    MouseMove, 0, -30, 10, R
}
Return
Note: You will probably need to experiment with changing the delays on the Sleep command (the 50) and the MouseMove commands (the 10s).

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: joedf and 79 guests