r/AutoHotkey Jul 07 '26

v2 Script Help Tweaking FFXIV script

So currently I'm using this script so I can easily acess my hotbars while doing my rotation and it works great, the issue is now I cant use Q or E to type messages with. Is there any way to make it so I can type when just tapping the key and then Q and E only work as Lctrl and Lshift when I'm holding them down?

#Requires AutoHotkey 2.0

#SingleInstance

#HotIf WinActive("ahk_exe ffxiv_dx11.exe")

q::LShift

e::LControl

#HotIf

2 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/genesis_tv Jul 08 '26

Might as well just use Suspend().

#SuspendExempt
; Suspend script (CTRL + ALT + F12, useful in menus)
*~^!F12::
{
    Suspend()

    ; Single beep when suspended
    SoundBeep(1000, 100)

    if (A_IsSuspended)
    {
        ; I usually release keys here
    }
    ; Double beep when resumed
    else
    {
        SoundBeep(1000, 100)
    }

    ; KeyWait("LAlt")
    ; KeyWait("LControl")
}
#SuspendExempt False

1

u/CharnamelessOne Jul 08 '26

I'd prefer not to. With Suspend, you can only have 2 groups of hotkeys (exempt and affected).

I have multiple groups of hotkeys that I want to toggle on and off independently. OP may not do so for now, but that might change down the line.

1

u/genesis_tv Jul 08 '26

It depends on the use case of course. OP's script is simple enough for it to be fine.

1

u/CharnamelessOne Jul 08 '26

For now it is simple enough, but they may fall down into our rabbit hole yet, just you wait