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