| Home | All functions | Categories |
vuWindowMove(Long,Long,Long,Long,Long,Long), Signed
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.
| 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. |
Always returns True (1).
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)
vuWindowHandle or Window{PROP:Handle}.Relative is set to True, xPos and yPos represent the offset from the current position.| Home | All functions | Categories |