
Variable Numeric xOld
Variable Numeric yOld
Variable Numeric x1
Variable Numeric y1

' Read the old cursor position
xOld = MouseXP
yOld = MouseYP

' Set cursor to 1000 500 and test it
x1 = 1000
y1 = 500
Controls SetCursorPos x1 y1
Print MouseXP + " " + MouseYP

' Restore the old cursor position
Controls SetCursorPos xold yold

Stop


