screenMouseLoc

Specifies the position of the mouse pointer relative to the screen.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the screenMouseLoc to horizontal, vertical

# Examples

put localLoc(the screenMouseLoc) into localMouse

set the screenMouseLoc to the topLeft of this stack

# Description

Use the screenMouseLoc property to find out where the mouse pointer is, or to change the location of the mouse pointer.

>*Important:* Taking over the position of the mouse pointer can > disorient and confuse users, and user interface > standards warn against doing so for that reason. Consider setting the > screenMouseLoc property only in unusual situations (such as for a > kiosk application or game). In normal desktop applications, the user > expects a consistent user interface without such surprises. You must > use this power only for good.

# Tags

ui,

# See

- **property:** defaultStack - **function:** mouseLoc, mouseV - **glossary:** property, integer, mouse pointer, user interface, absolute coordinates - **control structure:** function