Das sollte funktionieren:
; maximum number of hotkeys that can be pressed within 2 seconds (default rate of hotkey activations) ; without triggering a warning dialog: #MaxHotkeysPerInterval 10000 $XButton1:: while GetKeyState("XButton1", "P") { Send w Sleep 20 ; ms or more if you want to reduce the frequency of the send command } return
Ungetestet.
https://autohotkey.com/docs/commands/While.htm
https://autohotkey.com/docs/commands/_MaxHotkeysPerInterval.htm