Name
LeftMouseQuit -- enable/disable left mouse quit
Synopsis
LeftMouseQuit(enable)
Function
If you set enable to True, your script will be terminated as soon as the user presses the left mouse button.

Inputs
enable
True to enable left mouse quit, False to disable it
Example
LeftMouseQuit(TRUE)
Repeat
  Wait(10)
Forever
The above code enters an endless loop which would normally block your program. But using LeftMouseQuit(TRUE) allows the user to terminate it.

Show TOC