Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
click at point
click at point with key1
click at point with key1, key2
click at point with key1, key2, key3
The click at
command clicks the mouse from within scripts. It acts exactly as if the user had clicked the mouse on the screen.
If point
is within the rectangle of a button, a locked field, or anywhere else on the card, HyperCard sends the mouseDown
, mouseStillDown
, and mouseUp
messages to the object.
If point
is within the rectangle of an unlocked field, HyperCard sets the insertion point in the field.
The with key
options specify combinations of the commandKey
, the optionKey
, and the shiftKey
, just as if the user were holding down the key or keys while clicking the mouse.
HyperTalk Definition
An expression that evaluates to a specific screen location, in the form of two integers separated by a comma.
Item 1 of a point is the horizontal offset (in pixels). Item 2 of a point is the vertical offset (in pixels). For example:
AppleScript Definition
An expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:
In HyperTalk, one of the following:
In AppleScript, one of the following: