MouseMove

Moves the mouse to the specified X-Y coordinates.

Syntax:

MouseMove(X, Y, parent-windowname, child-windowname)

Parameters:

(i) X  integer specifying the coordinate X.

(i) Y integer specifying the coordinate Y.

(s) parent-windowname  the initial part of, or an entire parent window name.

(s) child-windowname the initial part or, or an entire child window name.

Returns:

(i)  @TRUE on success; @FALSE on error

 

This function accepts partial window names.

If "parent-windowname" specifies a top-level window and "child-windowname" is a blank string, the specified X-Y coordinates are relative to "parent-windowname".

If "parent-windowname" specifies a top-level window and "child-windowname" specifies a child window of "parent-windowname", the specified X-Y coordinates are relative to "child-windowname".

If "parent-windowname" and "child-windowname" are both blank strings, the specified X-Y coordinates are relative to the Windows desktop.

All coordinates are based on a virtual 1000 x 1000 screen.

Note: The size and shape of displayed windows are usually based on a combination of screen resolution and the system font size. Thus the x and y coordinates may be different on each individual machine.

 

Example:


MouseMove(335, 110, "", "")
See Also:

MouseClick, MouseClickBtn, MouseInfo, SendKey