Changes the state of a window.
The handle of the window.
The state flags to apply. See StateFlag for details.
StateFlag
1 if successful, 0 otherwise.
import { WinSetStateByHandle, StateFlag, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinSetStateByHandle(windowHandle, StateFlag.Minimize); Copy
import { WinSetStateByHandle, StateFlag, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinSetStateByHandle(windowHandle, StateFlag.Minimize);
https://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm
Changes the state of a window.