Skip to main content
Version: v6.7.0

Get-Mouse-Position

Command Description​

Get the position of the mouse cursor

Command Prototype​

objPoint=Mouse.GetPos()

Parameter Description​

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone

objPoint,The variable used to save the output of the command.

Demo​

TracePrint "--------------------Get mouse position--------------------" 
// --------------------------------------------------------
// [Remarks] Get the mouse position
// Output parameters:
// objPoint--Assign the result of running the command to this variable

// Command prototype: objPoint=Mouse.GetPos()
// --------------------------------------------------------

objPoint=Mouse.GetPos()
TracePrint(objPoint)