Page 1 of 1
holding down two hotkeys at the same time locks up most of computer
Posted: 29 Nov 2021, 20:40
by asoupcannot
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?
Re: holding down two hotkeys at the same time locks up most of computer
Posted: 29 Nov 2021, 22:32
by mikeyww
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.
Re: holding down two hotkeys at the same time locks up most of computer
Posted: 30 Nov 2021, 11:27
by asoupcannot
oh, right, i forgot to mention, i press shift-caps to turn it on and off. it only happens when it's on