hs.mouse.absolutePosition([point]) -> point
hs.mouse.count([includeInternal]) -> number
hs.mouse.getButtons() -> table
true
if the button is currently pressed or false
if it is not.left
(button 1), right
(button 2), and middle
(button 3) are also set to true if these buttons are currently being pressed.hs.eventtap.checkMouseButtons
hs.mouse.getCurrentScreen() -> screen or nil
hs.screen
object that the mouse pointer is on, or nil if an error occurredhs.mouse.getRelativePosition() -> point or nil
hs.mouse.getAbsolutePosition
if you need the location in the full desktop space)hs.mouse.names() -> table
hs.mouse.scrollDirection() -> string
hs.mouse.setRelativePosition(point[, screen])
hs.screen
object. Defaults to the screen the mouse pointer is currently onhs.mouse.trackingSpeed([speed]) -> number