UNPKG

@ahmic/autoit-js

Version:
16 lines (13 loc) 581 B
import './@types/point.js'; import './@types/rect.js'; import { INT, LPCWSTR } from './@types/win32.js'; import { autoit } from './lib/autoit.js'; function WinExistsSync(windowTitle, windowText = '') { return autoit.invoke('AU3_WinExists', INT, [LPCWSTR, LPCWSTR], [windowTitle, windowText]) === 1; } async function WinExists(windowTitle, windowText = '') { const result = await autoit.invokeAsync('AU3_WinExists', INT, [LPCWSTR, LPCWSTR], [windowTitle, windowText]); return result === 1; } export { WinExists, WinExistsSync }; //# sourceMappingURL=win-exists.js.map