Home
The HyperCard Center
HyperTalk Reference

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

mouse

the mouse

Value returned: one of the constants up or down indicating whether the mouse button is up or down

Note: Use the mouse to return the current state of the mouse button and the mouseClick to return whether the mouse has been clicked in the current handler.

Examples

if the mouse is up then ...
if (the mouse is down) or (the commandKey is down) then ...
wait until the mouse is up

Demo Script

on theMouse
show bkgnd field "demo field"
displayMessage "Click the mouse to continue . . ."
wait until the mouse is down
hide bkgnd field "demo field"
end theMouse

Related Topics

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View