I want a script that can interrupt others threads. For example:
a::
;do action a
sleep, 2000
;do action a2
sleep, 3000
;...
return
While a is being excecuted, i press b, then this thread will stop and return.
I tried to replace all sleep command with
input, key, L1 T2
if (key = "b")
return
I also tried reload command. But i wonder if there is any way better than that? Thanks in advance.
how to interrupt other threads with a hotkey? Topic is solved
Re: how to interrupt other threads with a hotkey? Topic is solved
you can make a 'b' hotkey which changes a variable and check that variable after the sleep commands.
Who is online
Users browsing this forum: No registered users and 344 guests