Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

controlKey

controlKey posInteger

The controlKey command has no built-in effect. HyperCard sends the controlKey command to the current card when a combination of the Control key and another key is pressed.

You can handle the controlKey message as follows:
on controlKey theKeyNumber
   statements
end controlKey


HyperCard passes the following numbers for each control key combination:

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

statements
Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world"   -- built-in command
get total(field 1)  -- function call
global HelpInfo     -- keyword


Related Topics

« commandKeyDown | HyperTalk Reference | convert »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

controlKey

controlKey posInteger

The controlKey command has no built-in effect. HyperCard sends the controlKey command to the current card when a combination of the Control key and another key is pressed.

You can handle the controlKey message as follows:
on controlKey theKeyNumber
   statements
end controlKey


HyperCard passes the following numbers for each control key combination:

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

statements
Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world"   -- built-in command
get total(field 1)  -- function call
global HelpInfo     -- keyword


Related Topics

« commandKeyDown | HyperTalk Reference | convert »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View