; Press F8 to start or stop the script. It will continue trying to log into the game until ; the queue window appears. Make sure NUM0 is bound to Confirm in your Keybinds list. ; ; You can do other things with your computer while the script runs, but if ARR is minimized ; or if there is another window covering the spot where the queue popup appears then this ; script won't be able to automatically stop itself. ; ; If you are using SweetFX to make the game's colors more vibrant, disable it while the script ; is running. ; ; Make sure you have 'queue.png' in the same directory as this .ahk file. SetTimer fLogin, 500, Period ; Change the hotkey from F8 to whatever you want F8::bToggle := !bToggle ; Create onscreen status display Gui +LastFound +AlwaysOnTop +ToolWindow -Caption Gui, Color, 000000 Gui, Font, s14 q3 Gui, Add, Text, vStatusDisplay cLime w300 Gui, Add, Text, vLastErrorCode cLime w1000 Gui, Add, Text, vScanning cLime w150 WinSet, TransColor, 000000 150 Gui, Show, x0 y0 NoActivate GuiControl,, StatusDisplay, Script stopped. return fLogin: SetTimer fLogin, 500, Off If (!bToggle) { GuiControl,, StatusDisplay, Script stopped. GuiControl,, LastErrorCode, Return } GuiControl,, StatusDisplay, Script running. GuiControl,, Scanning, Scanning... CoordMode, Pixel, Screen ImageSearch, posX, posY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 queue.png searchSuccess := ErrorLevel GuiControl,, Scanning, SetTimer fLogin, 500, On If searchSuccess = 0 { GuiControl,, LastErrorCode, Found queue popup! Script paused. ;MouseMove posX, posY, 3 Return } Else If searchSuccess = 1 { GuiControl,, LastErrorCode, Queue popup not found. ControlSend, , {Numpad0}, FINAL FANTASY XIV: A Realm Reborn } Else { GuiControl,, LastErrorCode, queue.png missing from script directory (%A_WorkingDir%) Return } Return ;^+r:: ; MsgBox, Reloading script ; Reload ;return