So I am trying to make a very simple fixed location scour+chancing script and I cannot get it to work inside the Path of Exile window. I have looked through the examples of "WinActivate" and other related commands but cannot get any of them to work. I also find it interesting and confusing how ONE 1 example of the winactive or any related command provided in the https://autohotkey.com/docs/commands/WinActivate.htm seems to work. For example, running the provided example of
IfWinExist, Untitled - Notepad
returns the following error "Error: "else" statement with no corresponding "if" statement
Like either something is very very wrong with my installation or the examples in the documentation/tutorials of the functions is wrong (and if that's true, I have no clue how to learn to use AHK since that's the pt of example uses of commands-to teach how to use them"
Anyway though, my current total attempt at the script is this:
GroupAdd, PoEexe, ahk_exe PathOfExile.exe
GroupAdd, PoEexe, ahk_exe PathOfExileSteam.exe
GroupAdd, PoEexe, ahk_exe PathOfExile_x64.exe
GroupAdd, PoEexe, ahk_exe PathOfExile_x64Steam.exe
$i = 0
IfWinActive Path of Exile ahk_class POEWindowClass ahk_group PoEexe
$i += 1
Until $i = 1
The Do to Until part works anywhere else but inside a particular window. The groupadd stuff was one way I saw someone else supposedly fix the whole "script doesnt work inside poe so do this" problem but the script currently returns the error of "groupadd=unknown function name"