Benefit: you can create a scheduled task to run this batch script every 2 hours and beat the time limit to keep OA running, save your fleets, and run your construction queue all night or while you're away.
Downside: since the script restarts OA, OA won't recall your fleets (if you've scheduled it to) or resume the bot/hunter. Not a big deal for me though.
Instructions: Put the following lines in a file called somename.bat, and create a shortcut to OGameAutomizer.exe somewhere on your system. Using notepad, edit the first line of the bat file so that it points to the shortcut you just made. The script will only work if you point to a shortcut file (i.e. a .lnk file) and will not work if you point to OGameAutomizer.exe itself. Then configure a scheduled task in windows to run the bat file as often as you like. Hope this is of some use
NOTE: Because of the nature of the program and my limited patience with batch scripts, this procedure will close ALL instances of java.exe, so any java-based programs will be terminated upon repeated execution of this script.
Someone could also edit this so that the 2-hour loop is included right inside the script, eliminating the need for a scheduled task. but I felt it wouldn't be as accurate of a clock.
set OGameLink="C:\Users\user\Desktop\OA.lnk"
@echo off
set comd1="tasklist /v /FI "IMAGENAME eq java.exe" 2>NUL | find /I /C "ogame automizer""
FOR /F %%A IN (' %comd1% ') DO SET var1=%%A
IF %var1% GEQ 1 (
:checkLoop
taskkill /FI "IMAGENAME eq java.exe"
PING 1.1.1.1 /n 1 /w 1000 > NUL
FOR /F %%A IN (' %comd1% ') DO SET var1=%%A
IF %var1% GEQ 1 GOTO checkLoop
PING 1.1.1.1 /n 1 /w 1000 > NUL
start "" %OGameLink%
GOTO end
) ELSE start "" %OGameLink%
:end
Someone who used to crack OA but doesn't any more could also stop pms'ing and release further updates of the crack, eliminating the need for this altogether.....








