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.
x number of keys in the last <timeperiod>
-
- Posts: 25
- Joined: 26 Dec 2015, 20:32
Re: x number of keys in the last <timeperiod>
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
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
Re: x number of keys in the last <timeperiod>
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
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
-
- Posts: 25
- Joined: 26 Dec 2015, 20:32
Re: x number of keys in the last <timeperiod>
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
Thank you for your time.
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
-
- Posts: 25
- Joined: 26 Dec 2015, 20:32
Re: x number of keys in the last <timeperiod>
Just bumping since it's been a couple of days.
Who is online
Users browsing this forum: No registered users and 340 guests