x number of keys in the last <timeperiod>

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hishighness
Posts: 25
Joined: 26 Dec 2015, 20:32

x number of keys in the last <timeperiod>

22 May 2017, 13:22

Hey all, apologies for the vagueness of this question, I'm not %100 sure what is happening. Basically I've got some hotkeys set up for the video game I play. But every so often autohotkey comes up with a message box saying something like "you've used x number of hotkeys in the last <timeperiod> I don't know exactly what it says because it kicks me out of the game and I'm just getting rid of it as fast as I can so I don't get killed.

I'm just wondering how to disable this message or any autohotkey message from popping up like this.

Thanks for your time.
holahapi
Posts: 72
Joined: 09 Nov 2016, 21:52

Re: x number of keys in the last <timeperiod>

22 May 2017, 14:24

It should mean your coode excuting(looping) a comaand for x time for a <timeperiod>.
With my understanding, looping too much in small period of time will make you PC very slow, AHK prevent it with the warning.

Your code should have some mistake
post your code here for people easier to help you out
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: x number of keys in the last <timeperiod>

22 May 2017, 14:29

This error usually occurs when a hotkey triggers itself. There may be other causes, in this example you can replace q:: with $q:: or add #UseHook to avoid the problem occurring.

Code: Select all

q:: ;'71 hotkeys' error
Send q
return

;---------------------------
;AutoHotkey.ahk
;---------------------------
;71 hotkeys have been received in the last 1092ms.

;Do you want to continue?
;(see #MaxHotkeysPerInterval in the help file)
;---------------------------
;Yes   No
;---------------------------

Code: Select all

$q:: ;'71 hotkeys' error
Send q
return

Code: Select all

#UseHook
q:: ;'71 hotkeys' error
Send q
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
hishighness
Posts: 25
Joined: 26 Dec 2015, 20:32

Re: x number of keys in the last <timeperiod>

23 May 2017, 10:00

Thank you very kindly for your replies. Here is my current code. While you are taking a look at it could I also get help with another issue I posted in the gaming section?

Here's the thread: https://autohotkey.com/boards/viewtopic ... 18&t=32007

Code: Select all

toggle3 = 0
#MaxThreadsPerHotkey 2

q::
Toggle := !Toggle
GoSub, SendKey
return

SendKey:
If Toggle {
	Send {w Down}
	}
else {
	Send {w up}
     }
return

~w::
~s::
~d::
~a::
if (toggle)
{
	toggle:=0
	Gosub, SendKey
}
return

F9::
	toggle3 := !toggle3
	While toggle3{
	Send e
	sleep 1
}
return

f8::
Toggle2 := !Toggle2
GoSub, SendKey2
return

SendKey2:
If Toggle2 {
	SendInput {LButton Down}
	}
else {
	SendInput {LButton Up}
     }
return

~LButton::
~RButton::
if (toggle2)
{
	Toggle2:=0
	Gosub, SendKey2
}
return
Thank you for your time.
hishighness
Posts: 25
Joined: 26 Dec 2015, 20:32

Re: x number of keys in the last <timeperiod>

25 May 2017, 18:34

Just bumping since it's been a couple of days. :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, demon740, mapcarter and 297 guests