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