GetMousePosition()

Example 1:

In this example, the variable mousePos becomes a new object containing the mouse properties.

var mousePos = GetMousePosition()

Example 2:

To reference the x and y coordinates for mousePos (Example 1 above), use the following syntax:

var mouseX = mousePos.x
var mouseY = mousePos.y

Note:
If mouseX and mouseY were page or publication variables, the current mouse position could be displayed on the current page.

Close