Checks if a window exists.
The handle of the window to search for.
True if the window exists, false otherwise.
import { WinExistsByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const handle = WinGetHandleSync('Untitled - Notepad');const exists = WinExistsByHandleSync(handle);console.log(exists); // Output: true or false Copy
import { WinExistsByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const handle = WinGetHandleSync('Untitled - Notepad');const exists = WinExistsByHandleSync(handle);console.log(exists); // Output: true or false
https://www.autoitscript.com/autoit3/docs/functions/WinExists.htm
Checks if a window exists.