Home THE HYPERCARD CENTER

HyperTalk Reference
Home » 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.

optionKey

the optionKey

Value returned: one of the constants up or down indicating whether the Option key is up or down

Examples

if the optionKey is up then ...
if (the mouse is down) and (the optionKey is down) then...
wait until optionKey() is up

Demo Script

on optionKeyDemo
-- Hold down the Option key when you click Run the Script.
answer "The Option key is:" && the optionKey
end optionKeyDemo

Related Topics

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View