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.

clickLoc

the clickLoc

Value returned: point equal to the place on the screen where the user most recently clicked relative to the top left corner of the current card

HyperCard does not reset the clickLoc at idle, nor does it reset when a handler is running, unless you use the wait command:

wait until the mouseClick

Demo Script

on mouseUp
answer "Click anywhere on the screen."
wait until the mouseClick
answer "You clicked at" && the clickLoc &&¬
"relative to the top left corner of the card."
end mouseUp

Related Topics

Placeholders

point

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:

91,303
"91,303"
"30" & "," & "100"
the clickLoc

AppleScript Definition

An expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:

{ 91, 303 }
clickLoc

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View