UNPKG

@ahmic/autoit-js

Version:
23 lines (20 loc) 925 B
import './@types/point.js'; import './@types/rect.js'; import { INT, LPCWSTR } from './@types/win32.js'; import { autoit } from './lib/autoit.js'; var StateFlag; (function (StateFlag) { StateFlag[StateFlag["Hide"] = 0] = "Hide"; StateFlag[StateFlag["Show"] = 5] = "Show"; StateFlag[StateFlag["Minimize"] = 6] = "Minimize"; StateFlag[StateFlag["Maximize"] = 3] = "Maximize"; StateFlag[StateFlag["Restore"] = 9] = "Restore"; })(StateFlag || (StateFlag = {})); function WinSetStateSync(windowTitle, windowText = '', flags) { return autoit.invoke('AU3_WinSetState', INT, [LPCWSTR, LPCWSTR, INT], [windowTitle, windowText, flags]); } function WinSetState(windowTitle, windowText = '', flags) { return autoit.invokeAsync('AU3_WinSetState', INT, [LPCWSTR, LPCWSTR, INT], [windowTitle, windowText, flags]); } export { StateFlag, WinSetState, WinSetStateSync }; //# sourceMappingURL=win-set-state.js.map