-
Member
Anyone know a program or a script to restart the bot every few hours?
Anyone know a program or a script to restart the bot every few hours?
In case it bot crashes (I'm not talking about in-console crash, I'm talking when the console completely exits).
For example, it'd run the bot for 2-3 hours. exit it (or if it crash within that time), turn it on again, and repeat. Thanks.
-
Member
Code
Code:
@ECHO OFF
:start
TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
timeout /t 3
start "PokemonGo.RocketAPI.Console.exe" ""<<<PATCH HERE>>>PokemonGo.RocketAPI.Console.exe""
timeout /t 1800
goto start
REM pause
Try this, just insert on "PATCH HERE" the direction from pokemonGo.exe
-
Post Thanks / Like - 2 Thanks
-
Member
Originally Posted by
BackTracking
Code:
@ECHO OFF
:start
TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
timeout /t 3
start "PokemonGo.RocketAPI.Console.exe" ""<<<PATCH HERE>>>PokemonGo.RocketAPI.Console.exe""
timeout /t 1800
goto start
REM pause
Try this, just insert on "PATCH HERE" the direction from pokemonGo.exe
thank you that was what i was looking for, I did something similar to this for switching steam accounts
-
Post Thanks / Like - 1 Thanks
xuananh0507 (1 members gave Thanks to Nostalghia for this useful post)
-
Member
Originally Posted by
BackTracking
Code:
@ECHO OFF
:start
TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
timeout /t 3
start "PokemonGo.RocketAPI.Console.exe" ""<<<PATCH HERE>>>PokemonGo.RocketAPI.Console.exe""
timeout /t 1800
goto start
REM pause
Try this, just insert on "PATCH HERE" the direction from pokemonGo.exe
hi can you show me how to use this code. thanks. i am a noob
-
Member
Do you mean PATH not PATCH?
-
1- Open Notepad
2- Paste the code
Code:
@echo off
:init
TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
start "" PokemonGo.RocketAPI.Console.exe
TIMEBREAK /NOBREAK /T 3600
goto init
3- Save as ...
4- Select type: All files(*.*)
5- Name it: whatever.bat
6- Copy it inside your bot folder.
7- Congratulations!
-
Member
Originally Posted by
nowayrlz
1- Open Notepad
2- Paste the code
Code:
@echo off
:init
TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
start "" PokemonGo.RocketAPI.Console.exe
TIMEBREAK /NOBREAK /T 3600
goto init
3- Save as ...
4- Select type: All files(*.*)
5- Name it: whatever.bat
6- Copy it inside your bot folder.
7- Congratulations!
thanks but what if i want to open/turn off more than one program ?
-
Member
Tnx for the script.
How can it be modified to open the program and not show cmd console in taskbar?
+ how can I open 5 different accounts with this so that it wont kill others while restarting the first?
Last edited by Femator; 07-26-2016 at 04:34 AM.
-
Active Member
-
Member
Code:
:loop
start "Run" /d "C:\users\user\desktop\bot01" call run.bat
start "Run" /d "C:\users\user\desktop\bot02" call run.bat
start "Run" /d "C:\users\user\desktop\bot03" call run.bat
start "Run" /d "C:\users\user\desktop\bot04" call run.bat
timeout /t /nobreak 1800
taskkill /fi "WINDOWTITLE eq Run*"
goto loop
This is what I use for easy opening multiple bots, run.bat just opens another cmd and executes a python script for the bot to start.