Suspend

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
John1
Posts: 236
Joined: 11 May 2020, 11:54

Suspend

12 Apr 2023, 05:43

Hello,

Code: Select all

J::
Variable_Status := 1

MouseMove,50,150
Click, left, down
gosub GoSub_Sleep_17
click
Suspend
return

6::
if (Variable_Status = 1)
{
Suspend

Text:="|<(CREATE) (GRÜN)>*126$37.S00060RU0030APrXnvo1XNAli0nwSNzXMUPAEvAPNaBj477lnc"
if (ok := FindText(X,Y,0,0,0,0,0,0, Text))
{
	MouseMove,X,Y
	gosub GoSub_Klick
}
}
return
The script is already suspended. How can with "6" unsuspend it again, but only when Variable_Status = 1. Suspend works when i write it as first. But i want it only when Variable_Status = 1.
Thank you!
User avatar
mikeyww
Posts: 28871
Joined: 09 Sep 2014, 18:38

Re: Suspend

12 Apr 2023, 06:27

The secret is in the documentation.

Suspend:
Any hotkey/hotstring subroutine whose very first line is Suspend (except Suspend On) will be exempt from suspension

Permit: Does nothing except mark the current subroutine as being exempt from suspension.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo and 141 guests