mouseStack

returns the name of the window the mouse pointer is over.

# Metadata

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

# Syntax

the mouseStack

# Examples

the mouseStack

if the mouseStack is "Message box" then hide message

# Description

Use the mouseStack function to determine which window the mouse is over, or, in conjunction with the mouseControl, mouseLine, or mouseChunk, to determine which field the mouse is over.

If the mouse is not over any LiveCode window, the mouseStack returns empty.

If the mouse is over a stack's title bar or border, the mouseStack returns empty.

# Tags

ui,

# See

- **property:** name - **control structure:** function - **keyword:** field - **object:** stack - **glossary:** property, mouse pointer, return - **command:** focus - **function:** mouseCharChunk, mouseColor, mouseV, mouseChunk, clickStack, mouseControl, mouseLine