screen get mouse x,y

Allows you to get the X and Y coordinates of the cursor.


Example

Running this code will create a stat monitor above the UBot browser - X: set to "#x", and Y: set to "#y". Then the following properties will be set to the "screen get mouse x,y" command:

  • Position X: #x
  • Position Y: #y
  • Time Out: 5

After left-clicking on the screen, the UI stat monitor located above the UBot browser will show the coordinates of the clicked cursor.

This is shown in the UBot browser.

ui stat monitor("X: ",#x)
ui stat monitor("Y: ",#y)
plugin command("Desktop Automation.dll", "screen get mouse x,y", #x, #y, 5)

Was this helpful?

Previous Article

mouse scroll

Next Article

screen lock