holding down two hotkeys at the same time locks up most of computer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
asoupcannot
Posts: 3
Joined: 02 Aug 2021, 19:00

holding down two hotkeys at the same time locks up most of computer

Post by asoupcannot » 29 Nov 2021, 20:40

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Suspend

e::LButton
r::RButton
f::LShift

+CapsLock::Suspend
if i hold down e and r at the same time, after about 2 seconds, it brings up a message saying that too many hotkeys were detected and asks if i want to continue, however, i can't click anywhere (not even other windows) until i press ctrl-alt-delete, after which the computer unlocks.

this does not happen if i only hold one of them. how can i fix this?

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: holding down two hotkeys at the same time locks up most of computer

Post by mikeyww » 29 Nov 2021, 22:32

It seems to me that this script does nothing, because all of the hotkeys are suspended. Nonetheless, I did not see any error messages.

One can set the #MaxHotkeysPerInterval if needed. This problem is sometimes caused by an unintended hotkey loop, though I do not see one in your script, assuming that you are showing the entire script.

asoupcannot
Posts: 3
Joined: 02 Aug 2021, 19:00

Re: holding down two hotkeys at the same time locks up most of computer

Post by asoupcannot » 30 Nov 2021, 11:27

oh, right, i forgot to mention, i press shift-caps to turn it on and off. it only happens when it's on

Post Reply

Return to “Ask for Help (v1)”