Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » commandKey

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

commandKey

the commandKey
the cmdKey

Value returned: either of the constants up or down, depending on whether the Command key is up or down

Examples

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

Demo Script

on commandKeyIs
-- Hold down the Command key when you click Run the Script.
answer "The Command key is:" && the commandKey
end commandKeyIs

Related Topics

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View