Moves a window to a specified position and resizes it.
The handle of the window to move.
The X coordinate of the new position.
The Y coordinate of the new position.
The new width of the window.
The new height of the window.
1 if successful, 0 otherwise.
import { WinMoveByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinMoveByHandle(windowHandle, 100, 100, 800, 600); Copy
import { WinMoveByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinMoveByHandle(windowHandle, 100, 100, 800, 600);
https://www.autoitscript.com/autoit3/docs/functions/WinMove.htm
Moves a window to a specified position and resizes it.