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
Loop clicking question Topic is solved
-
- Posts: 1259
- Joined: 16 Apr 2015, 09:41
Re: Loop clicking question
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
Re: Loop clicking question
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?
Re: Loop clicking question Topic is solved
Looping* not looking
-
- Posts: 1259
- Joined: 16 Apr 2015, 09:41
Re: Loop clicking question
It is most likely going too quickly for the program you are using it with. Try this instead...
Note: You will probably need to experiment with changing the delays on the Sleep command (the 50) and the MouseMove commands (the 10s).
Code: Select all
f::
While GetKeyState("f", "P")
{
Click
MouseMove, 0, 30, 10, R
Sleep 50
Click
MouseMove, 0, -30, 10, R
}
Return
Who is online
Users browsing this forum: joedf and 79 guests