Script still not working properly.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
realrob
Posts: 8
Joined: 18 Jul 2021, 14:21

Script still not working properly.

Post by realrob » 26 Jun 2022, 11:09

Trying to do the simplest thing or so I thought.
All I need is LShift toggle.

these are the two scripts I've been trying:

Code: Select all

#IfWinActive ahk_exe eso64.exe
$LShift::
    if GetKeyState("LShift")
        Send {Blind}{LShift Up}
    else
        Send {Blind}{LShift Down}
return
#IfWinActive
and

Code: Select all

#IfWinActive ahk_exe eso64.exe
$LShift::Send % GetKeyState("LShift")?"{m Up}":"{LShift Down}"
While they technically do work, there is a recurring issue. The printout isn't consistent.
I always get something like this when typing: OOOOOOOoOOOOOOoOOOOOOo or FFFFFFFFFfFFFFFFFFfFFFFFFFFf (insert any letter for example).
Basically it acts as if it's toggling itself for a split second every now and again.

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

Re: Script still not working properly.

Post by mikeyww » 26 Jun 2022, 11:57

Have a look at the :arrow: KeyHistory to see what is happening. You can use KeyWait if needed.

Post Reply

Return to “Ask for Help (v1)”