AutoHook
Downloads
Documentation
Quick Links
Hotkey Terminology
AutoHook Dialog
Options
Window
Program
Import
Export
License
Macro Commands
Definition
AutoHook Commands
AutoCAD Special Keys
Other AutoCAD Keys
DoubleTap Hotkeys
Mouse Buttons
Managing INI Files
Example Macros
Hotkey Limitations
Registration
AutoHook Macro Commands
{pause m}
Pauses Macro playback and waits for a left mouse button click (LButton).

{pause e}
Pauses Macro playback and waits for the Enter key.

{pause me} / {pause em}
Pauses Macro playback and waits for either a left mouse button click (LButton) or the Enter key.

Notes on all pause macro commands:
All forms of the pause Macro command will wait indefinitely for the ending trigger. You may have multiple pauses in one Macro. Hotkeys are disabled during a pause. If you don't want them disabled, use one of the delay Macro commands instead.
While a pause is active, AutoHook will change its tray icon to indicate pause status and will display a pause tooltip near AutoCAD's cursor.
You may cancel a pause by either hitting the Escape key, or by right clicking on AutoHook's tray icon and choosing "Cancel Pause". When a pause is canceled, any remaining Macro is not played.

{repeat}
Causes the portion of the Macro after the {repeat} label to loop continuously until the Escape key is pressed. Only one {repeat} label may exist per Macro. If there is no {pause} or {delay} after the {repeat} label, AutoHook will automatically insert a 1 second delay at the end of each loop.
If you set a very low delay, you may need to mash Escape a few times to exit the loop.

{delay #}
Adds a delay to your Macro where # is the number of milliseconds to delay. For example, {delay 3000} will delay your Macro for 3 seconds at the location of its label. Useful by itself when AutoCAD can't keep up with the speed of the Macro, or when used after the {repeat} Macro Command to override the default 1 second repeat delay. Any delay less than 50 milliseconds is treated as 50 milliseconds. Delays may be canceled by hitting the Escape key, discarding any remaining Macro.

{suspend}
Can be used to suspend your Hotkeys, returning all keys (except {suspend} and {autohook} Macro Commands ) to their default AutoCAD function, as if AutoHook were not running. The {suspend} Macro Command is a toggle, allowing you to turn your hotkeys both off and back on.
You may also suspend your Hotkeys without a Macro Command by right clicking on AutoHook's tray icon and selecting "Suspend Hotkeys" or by right clicking in the Hotkey/Assigned Macro list view. AutoHooks Assigned Macro column indicates the suspended status by appending (Suspended) to the column. If {suspend} exists anywhere within a Macro, all other Macro text is ignored.

{autohook}
Can be used to show the AutoHook dialog (if it's not already shown) and make it active. AutoHook must already be running with AutoCAD active for this to work. {autohook} hotkeys are not suspended by the {suspend} macro command. If {autohook} exists anywhere within a Macro, all other Macro text is ignored.