click | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Simulates a mouse click. | ||||||||||||
Introduced | 1.0 | ||||||||||||
OS | mac, windows, linux, ios, android | ||||||||||||
Platforms | desktop | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Keyword: button Property: autoHilite, dragSpeed Message: linkClicked, mouseUp, mouseDown, mouseStillDown, mouseDoubleUp, dragStart Command: grab, choose, type Function: clickLoc, mouseClick Glossary: object, highlight, application, handler, message, graphic, command, image | ||||||||||||
Description | Use the click command to simulate the action of a click, instead of sending a mouseDown or mouseUp message--for example, to create a graphic or image with a handler. The click command sends a mouseDown and mouseUp message to the object at the clicked location. If two objects both occupy the clicked location--one overlapping the other--the messages are sent to the object on top. If the object under the point is a button whose autoHilite is true, the click command causes the button to highlight and unhighlight, just as though the user had clicked. If the point is not within one of the application's windows, the click command has no effect. This means that you cannot use the click command to switch to another application. | ||||||||||||
Tags | ui |