Skip to main content

mouseStack

Type​

function

Summary​

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

Syntax​

the mouseStack
mouseStack()

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.

Examples​

the mouseStack
if the mouseStack is "Message box" then hide message

Value​

NameTypeDescription

return

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

control structure: function

function: mouseCharChunk, mouseColor, mouseV, mouseChunk, clickStack, mouseControl, mouseLine

glossary: property, mouse pointer, return

keyword: field

object: stack

property: name

command: focus

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?