Syntax
DisableInput [Disable]
Remarks
Prevents the ESC key from interrupting a macro. DisableInput does not prevent ESC from canceling a dialog box.
Argument | Explanation | |
Disable | Determines whether or not to disable the ESC key: 0 (zero) Enables the ESC key to cancel the macro 1 or omitted Prevents the ESC key from canceling the macro |
Note
If the user presses ESC while a dynamic dialog box is displayed, a message stating that the macro was interrupted appears and the dialog box remains on screen. To make ESC behave properly when you display a dynamic dialog box, precede the Dialog or Dialog() instruction with the instruction DisableInput 1; follow with DisableInput 0 to reset the original ESC key behavior.
Example
This example shows how you might use DisableInput instructions preceding and following an instruction that displays a dynamic dialog box.
DisableInput 1 button = Dialog(MyDynamicDlg) DisableInput 0