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.

mouseClick

the mouseClick
Value returned: the constant true if the mouse has been clicked sometime during the running of the current handler, or false if it hasn't.

If the mouse button is down, the mouseClick waits until the mouse button is up before returning true.



Note: Use the mouse to return the current state of the mouse button and the mouseClick to return whether the mouse has been clicked in the current handler.


Demo Script

on theMouseClick
  show bkgnd field "demo field"
  displayMessage "Click the mouse to continue . . ."
  wait until the mouseClick
  hide bkgnd field "demo field"
end theMouseClick

Related Topics

« mouse | HyperTalk Reference | mouseH and mouseV »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

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.

mouseClick

the mouseClick
Value returned: the constant true if the mouse has been clicked sometime during the running of the current handler, or false if it hasn't.

If the mouse button is down, the mouseClick waits until the mouse button is up before returning true.



Note: Use the mouse to return the current state of the mouse button and the mouseClick to return whether the mouse has been clicked in the current handler.


Demo Script

on theMouseClick
  show bkgnd field "demo field"
  displayMessage "Click the mouse to continue . . ."
  wait until the mouseClick
  hide bkgnd field "demo field"
end theMouseClick

Related Topics

« mouse | HyperTalk Reference | mouseH and mouseV »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View