GetMouseX

<< Click to Display Table of Contents >>

 

GetMouseX

GetMouseX()

Returns mouse pointer's X coordinate, in pixels, relative to the entire area of computer's screen.

 

NOTE

This method fails in a script if the current mouse pointer position cannot be retrieved. One of the situations where this failure can be verified is when Windows Logon window opens (when pressing the shortcut key CTRL + ALT + DEL). This behavior of preventing access to the current mouse pointer position is default on Windows in some situations and cannot be overridden. As a suggestion, use the On Error Resume Next command before using this method to prevent script errors.

Was this page useful?