mouseX
Returns the pointer's horizontal position in screen points.
Keyboard Maestro: MOUSEX
Details #
mouseX() takes no arguments and returns a number: how far the pointer is from the left edge of the main display, rounded to a whole number. Zero is the left edge of the main display; a screen to its left gives negative numbers.
Parameters #
Takes 0 arguments.
{{ mouseX() }}
Examples #
mouseX()→
0mouseX() + 10→
10Gotchas #
Calling it with an argument is an error:
mouseX() takes 0 arguments, got 1.With nothing real to read, the answer is 0.