MoveWindow
Windows management function.
The MoveWindow function moves the specified window without changing its size.
Syntax
MoveWindow(<window_name>,<instance>,<X>,<Y>)
or
ret=MoveWindow(<window_name>,<instance>,<X>,<Y>)Parameters
<window_name>, window name of the window to move, it must include <instance>, instance number of the window to move.
<X>,<Y>, numeric in pixels ; coordinates of the point where the window is to be moved. These are the coordinates of the upper-left corner of the window, relative to the upper-left corner of the screen. These coordinates can be negative ; the size of the window is not changed.
Return value
Ret, numeric return code. When the move is successful, the function returns 0, otherwise use this return code for Error Handling.
Examples
MoveWindow("NOTEPAD.EXE|Notepad|Untitled - Notepad",1, 100, 120)
Ret = MoveWindow(win$, 0, var_x, var_y)