#KeyHistory

AutoHotkey GUI

#KeyHistory

Sets the maximum number of keyboard and mouse events displayed by the KeyHistory window. You can set it to 0 to disable key history.

#KeyHistory MaxEvents

Parameters

MaxEvents

The maximum number of keyboard and mouse events displayed by the KeyHistory window (default 40, limit 500). Specify 0 to disable key history entirely.

Remarks

Because this setting is put into effect before the script begins running, it is only necessary to specify it once (anywhere in the script).

Because each keystroke or mouse click consists of a down-event and an up-event, KeyHistory displays only half as many "complete events" as specified here. For example, if the script contains #KeyHistory 50, up to 25 keystrokes and mouse clicks will be displayed.

Related

KeyHistory, #NoTrayIcon

Example

#KeyHistory 0    ; Disable key history.
#KeyHistory 100  ; Store up to 100 events.