Loop while key held down gets stuck sometimes, not sure why?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Crimson_V
Posts: 9
Joined: 14 May 2016, 06:54

Loop while key held down gets stuck sometimes, not sure why?

06 Dec 2017, 15:51

Code: Select all

SendMode Input

F11::suspend

$*e:: 
   While ( GetKeyState( "e","P" ) ) 
   { 
      Send, {Blind}{e}
      Sleep, 15
   } 
Return
So this is my code and most of the time it does what i want, but it has about a 1in40chance to get stuck spamming e (suspending or pressing e again fixes it) changing the sent key to something else doesn't fix it (it gets stuck sending the new key),
Is my keyboard faulty and not sending e up to my pc? i have no clue what i'm doing wrong.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Kodakku, Noesis and 383 guests