Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

GetCursorX

  • Last UpdatedOct 29, 2026
  • 1 minute read

Gets the X-coordinate of the mouse cursor on the screen.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

GetCursorX

System Info

Synchronous

Yes

Supported

Supported

Not supported

Supported

Not supported

Syntax

GetCursorX ( )

This function takes no parameters.

Returned value

This function returns the X-coordinate of the cursor on the screen, or -1 if an error occurs.

Examples

Tag Name

Expression

GetCursorX( ) // Returned value = 1024

In This Topic