Change this If Test % Var 1 % to this if test varIf is an expression . You don ' t use %% with expressions . I ' d strongly advise learning about writing thing in expressions because it helps a lot with stuff like this . Here ' s how I ' d write this script # Include tf . ahk SetTitleMatchMode , 2 var 1 Hit Enter within 3 seconds to abort . Loop test TFTailCProgram Files x 86 PuTTYputty . log , 1 If test var 1 break MsgBox It WorksnbspReferences Expressions and Variables <| sep |> OK here are some of the bugs I ' ve faced , some of them are personal so I sent Hangame a ticket alreadyMy quest completely reset what I mean is I keep getting the quest that your meant to get when you start the game , as a newbie I already completed most of these quest a long time ago , no way am I going to spend all my time completing these and trying to get the repeatable quest again , I guess I won ' t be able to farm gold effectively for now Chat isn ' t working even when I reload the game over again by clearing the data it still refuses to workA slight bug n the UI like the treasure chest for in app purchasesBerry training so this happened to me and I ended up wasting quite a lot of berries , when I give my hero the berry the stat goes up but then the game thinks the stat wasn ' t increased so it goes back to the original stat e . g if evasion stat was 10 and I use berries to increase it to 15 the stat increases but it instantly goes back down and I ' m left with using another berry to fix the visual glitchI ' m pretty sure these are the bugs I ' ve faced so far , the worst by far is the quests bug that gives me all the quest that I have already completed rather than the repeatable quest as it will hinder my gold farming due to not receiving the battlefield repeatable quests