@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
16 lines (13 loc) • 581 B
JavaScript
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