docs

Home All functions Categories

vuWindowMove(hWindow, xPos, yPos, Steps, Pause, Relative)

vuWindowMove(Long,Long,Long,Long,Long,Long), Signed

Description

Moves any window around the screen, given its handle. The move can be absolute (relative to the screen’s upper-left corner) or relative to the window’s current position. Optionally, the move can be animated in steps with pauses between them.

Parameters

Parameter Data Type Description
hWindow LONG Handle of the window to move.
xPos LONG Horizontal position (pixels) to move the windows upper-left corner to.
yPos LONG Vertical position (pixels) to move the windows upper-left corner to.
Steps LONG Number of incremental steps to use (for animated movement).
Pause LONG Number of milliseconds to pause between steps.
Relative LONG Set to True to move relative to the current position, False for absolute.

Returns

Always returns True (1).

Example

Move a window to absolute position 100, 50 in 10 steps with 5ms pauses:

hWnd = vuWindowHandle('<My Window Name>')
vuWindowMove(hWnd, 100, 50, 10, 5, 0)

Move a window 5 pixels right and 5 pixels down from its current position:

vuWindowMove(hWnd, 5, 5, 1, 0, 1)

Notes

Home All functions Categories