Checks if a window is currently active.
The title of the window to check.
Optional text found in the window.
1 if the window is active, 0 otherwise.
import { WinActive } from '@ahmic/autoit-js';const isActive = WinActive('Untitled - Notepad');console.log(isActive); // Output: 1 Copy
import { WinActive } from '@ahmic/autoit-js';const isActive = WinActive('Untitled - Notepad');console.log(isActive); // Output: 1
https://www.autoitscript.com/autoit3/docs/functions/WinActive.htm
Checks if a window is currently active.