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.


the clickText
Value returned: text string equal to the word the user clicked or the longest contiguous string of characters with the text style Group around the character that the user clicked

The text style Group allows the clickText to extend beyond word boundaries.


put the clickText into theTextClicked

get the clickText
if it is not empty then go card it

Demo Script

on clickDemo
   toggleActiveText true -- make sure grouped text is visible
   answer "Click any text in the Demo Script." & return & ¬
   "Click text with the gray underline (grouped text) to get phrases."
   wait until the mouseClick
   get the clickText
   select the clickChunk
   wait 1 second
   answer "The text that you clicked was  “" & it & "”."
 end clickDemo

Related Topics

« clickLoc | HyperTalk Reference | commandKey »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View