Automatic Script Help

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
JamieWasTaken
Posts: 1
Joined: 16 Oct 2021, 22:31

Automatic Script Help

16 Oct 2021, 22:35

I'm looking for a script that does something really simple, but I can't seem to get it to work

I'm trying to make a script that does the following
The script presses the 1 key, then sends a mouse click
it presses the 1 key again, then waits for 1 second
it then presses the 2 key, then sends a mouse click
it then sends a mouse click
presses the 2 key again
and waits one second

the script is supposed to be looped, and below is the script I have made

Code: Select all

F8::
Loop
{
    Send, 1
    MouseClick, left
    Send, 1
    Sleep 1000
	Send, 2
	MouseClick, left
	Send, 2
	Sleep 1000
}until
return
[Mod edit: [code][/code] tags added.]

anything wrong with this?
Rohwedder
Posts: 7623
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Automatic Script Help

17 Oct 2021, 03:09

Hallo,
try without until

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 218 guests