Jack N
Jack N

Reputation: 334

How to disable the "71 keys pressed in the last..." Window

I have an NKRO keyboard, so when I hold down a bunch of keys, sometimes when gaming, the "71 keys pressed in the last ____ seconds" window pops up from AHK. Is there a way that I can disable that window or remove it from the AHK program altogether?

Upvotes: 1

Views: 3857

Answers (3)

Nick S
Nick S

Reputation: 1

Per help docs this works Place it in the beginning of the script

A_HotkeyInterval := 2000 ; This is the default value (milliseconds). A_MaxHotkeysPerInterval := 200

Upvotes: 0

Charlie Armstrong
Charlie Armstrong

Reputation: 2342

AutoHotkey has two directives for controlling this behavior:

  1. #MaxHotkeysPerInterval <Value>

This lets you define how many hotkeys can be fired within a certain interval (see below) before the warning dialog comes up. The default is 70.

  1. #HotkeyInterval <Milliseconds>

This lets you define the length of the interval describe above in milliseconds. The default is 2000, which is 2 seconds.

This warning popup is in place to protect you, so don't overdo it with these directives. They are intended to prevent you from creating an infinite loop where a hotkey triggers itself. 70 hotkeys within 2 seconds is quite a lot for most applications.

Upvotes: 4

Spyre
Spyre

Reputation: 2344

Try adding #MaxHotkeysPerInterval 9999 to the top of your script. If that doesn't work, it might be useful to know what scripts are using in case those are contributing to the problem.

Source

Upvotes: 1

Related Questions