and now have reached my wit's end.
how is multiple #IF like this supposed to be written?
Code: Select all
Gosub, ~\
Return
#IFWinActive, ahk_exe PillarsOfEternityII.EXE ;PoE2 [Active] and Numlock [On]
NumpadClear:: b ;remap, b
#IF
~\:: ;Toggle-Key, \
NNLState := !GetKeyState("NumLock","T")
GetKeyState, NumState, NumLock, T
If NumState = D
{
Progress, B1 Y80 ZH0 fs9 H25 W110 CTFFFFFF CW000000 Hide, Battle Mode, , text popup, Georgia
DetectHiddenWindows, On
WinSet, Transparent, 150, text popup
Progress, Show
Sleep, 200
}
else
{
Progress, Off
Sleep, 200
}
return
#IF WinActive("ahk_exe PillarsOfEternityII.EXE") && NNLState ;PoE2 [Active] and Numlock [Off]
NumpadClear:: Down ;remap, down arrow
#IF