Beginner Issue with loop/jumping to other hk Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
emilymadwest
Posts: 4
Joined: 12 Apr 2022, 06:25

Beginner Issue with loop/jumping to other hk

Post by emilymadwest » 02 Oct 2022, 08:34

Hello,
I just want to make a script with 2 hotkeys. The first one should press a button and then jump to a different hotkey within the script. That hotkey then automatically starts the designated loop. This works fine, however, I cannot press the first hotkey again as long as the loop is active. Is there a way to fix that?

Code: Select all

$1::
sendinput {F1}
sleep 500
Gosub r
Send {!}
return

r::

Stop := 0
loop {
sendinput {F2}
sleep 500

} until Stop



emilymadwest
Posts: 4
Joined: 12 Apr 2022, 06:25

Re: Beginner Issue with loop/jumping to other hk

Post by emilymadwest » 02 Oct 2022, 10:22

Thanks a lot.
I managed to fix the issue with the aforementioned command.

Post Reply

Return to “Ask for Help (v1)”