User Guide
380 Chapter 12: Methods
lastClick()
Usage
the lastClick
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the mouse button was
last pressed.
This function can be tested but not set.
Parameters
None.
Example
This statement checks whether 10 seconds have passed since the last mouse click and, if so, sends
the playhead to the marker No Click:
if the lastClick > 10 * 60 then go to "No Click"
See also
lastEvent(), lastKey, lastRoll, milliseconds
lastEvent()
Usage
the lastEvent
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the last mouse click, rollover,
or key press occurred.
Parameters
None.
Example
This statement checks whether 10 seconds have passed since the last mouse click, rollover, or key
press and, if so, sends the playhead to the marker Help:
if the lastEvent > 10 * 60 then go to "Help"
See also
lastClick(), lastKey, lastRoll, milliseconds