Waits for a window to close.
The title of the window to wait for.
Optional text found in the window.
The timeout in seconds. Default is 0 (wait indefinitely).
1 if the window closes, 0 if the timeout is reached.
import { WinWaitClose } from '@ahmic/autoit-js';WinWaitClose('Untitled - Notepad', '', 10); Copy
import { WinWaitClose } from '@ahmic/autoit-js';WinWaitClose('Untitled - Notepad', '', 10);
https://www.autoitscript.com/autoit3/docs/functions/WinWaitClose.htm
Waits for a window to close.