mouseStack

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the mouseStack
mouseStack()
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the mouseStack
if the mouseStack is "Message box" then hide message
Values
NameTypeDescription
return

The mouseStack function returns the short name property of the window the mouse is over.

RelatedProperty: name
Control Structure: function
Keyword: field
Object: stack
Glossary: property, mouse pointer, return
Command: focus
Function: mouseCharChunk, mouseColor, mouseV, mouseChunk, clickStack, mouseControl, mouseLine
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.

Tagsui