Break

From AutoIt Wiki

Jump to: navigation, search

Enables/disables the users' ability to exit a script from the tray icon menu. AutoIt normally creates a tray icon when running, right-clicking this icon allows the user to pause or exit the script. If Break is disabled (0) then the user cannot terminate the script this way. Adapted from AutoIt docs.

Contents

[edit] Syntax

Break(mode)

[edit] Parameters

mode1 = Break enabled.
0 = Break disabled.

[edit] Return Value

None.

[edit] Example

Break(1)  ; Enable break
Personal tools