Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. 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

Placeholders

Related Topics

« clickLine | HyperTalk Reference | clickText »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View