-
Sergeant
Programs that shuts down and reopen Necrobot?
Is there a way to get a program or you know any programs you know that can terminate Necrobot in a certain time and reopen after a few hours?
-
Member
-
Sergeant
Originally Posted by
ymicky
You could code a program
What's the point of posting here if I can write a script and run a program?
-
Member
-
Contributor
You can simply create a batch file for it. The following example batch file opens Necrobot lets it run for an hour, kills it, waits 2 hours and reopens it for another hour, etc. in an endless in loop.
Instructions:
In your Necrobot folder, rightclick new text document, name it botcontrol.bat
Edit botcontrol.bat
Paste this code inside
:start
start NecroBot.exe
timeout /t 3600
taskkill -f -IM "NecroBot.exe"
timeout /t 7200
goto :start
Save
Double click botcontrol.bat
The times are in seconds, you can easily adjust the numbers. 3600 is 1h, 7200 is 2h.
-
Post Thanks / Like - 3 Thanks
-
Sergeant
Originally Posted by
Ripper3
You can simply create a batch file for it. The following example batch file opens Necrobot lets it run for an hour, kills it, waits 2 hours and reopens it for another hour, etc. in an endless in loop.
Instructions:
In your Necrobot folder, rightclick new text document, name it botcontrol.bat
Edit botcontrol.bat
Paste this code inside
Save
Double click botcontrol.bat
The times are in seconds, you can easily adjust the numbers. 3600 is 1h, 7200 is 2h.
Thans man! +repped!
Question though, I will open bot and run then this botcontrol.bat will run on its own?
-
Contributor
Just run the batch file. It will automatically start the bot for you
-
Sergeant
Originally Posted by
Ripper3
Just run the batch file. It will automatically start the bot for you
So the batch file is the notepad I am putting the script right? Sorry, kind of lost. First time doing this. Thank you so much!
-
Contributor
Yes, but rename the .txt to have a .bat ending. So it looks like this:
-
Master Sergeant
Originally Posted by
Ripper3
You can simply create a batch file for it. The following example batch file opens Necrobot lets it run for an hour, kills it, waits 2 hours and reopens it for another hour, etc. in an endless in loop.
Instructions:
In your Necrobot folder, rightclick new text document, name it botcontrol.bat
Edit botcontrol.bat
Paste this code inside
Save
Double click botcontrol.bat
The times are in seconds, you can easily adjust the numbers. 3600 is 1h, 7200 is 2h.
is this script means It starts the exe after pressed the .bat, after 1 hour, it will close itself
then 2 hours later, it will restart from the beginning?
am i right?
P.S I would also wanna know is there any way I can count how many "POKESTOP" in the necrobot when its running? so I can know how many pokestops I have looted.
Becase It appears exactly only one time the word after a loot from pokestop
Last edited by mickeymike1834; 08-15-2016 at 02:53 PM.
-
Sergeant
Originally Posted by
Ripper3
You can simply create a batch file for it. The following example batch file opens Necrobot lets it run for an hour, kills it, waits 2 hours and reopens it for another hour, etc. in an endless in loop.
Instructions:
In your Necrobot folder, rightclick new text document, name it botcontrol.bat
Edit botcontrol.bat
Paste this code inside
Save
Double click botcontrol.bat
The times are in seconds, you can easily adjust the numbers. 3600 is 1h, 7200 is 2h.
To make it more human like you can randomize timeout. With the value of 14400 it will randomize between 0 secs and 4 hours. You can of course change this value to what you want.
:start
start NecroBot.exe
SET /a rnd=(%RANDOM%*14400/3276
+1
timeout %rnd%
taskkill -f -IM "NecroBot.exe"
SET /a rnd=(%RANDOM%*14400/3276
+1
timeout %rnd%
goto :start
Edit: The smileys are 8 and ) next to each other.
I don't know how to remove smileys.
-
Post Thanks / Like - 1 Thanks
testt0r (1 members gave Thanks to olofpp for this useful post)
-
Contributor
Originally Posted by
mickeymike1834
is this script means It starts the exe after pressed the .bat, after 1 hour, it will close itself
then 2 hours later, it will restart from the beginning?
am i right?
When you doubleclick the .bat file, it will
1) Start Necrobot
2) Run it for 1 hour
3) Kill Necrobot after the 1 hour
4) Wait 2 hours
5) Loop to 1.
So it will always run bot for 1 hour, take a 2 hour break, run bot for another hour, and so on.
-
Member
-
Member
I would be more interested in a program/script that shuts down the bot when you reach 1000 pokemon or 2000 pokestops and reopens after 24h... or at least to just shut down when the cap per day is reached an I will manualy open my self the next day
-
Corporal
Originally Posted by
olofpp
To make it more human like you can randomize timeout. With the value of 14400 it will randomize between 0 secs and 4 hours. You can of course change this value to what you want.
:start
start NecroBot.exe
SET /a rnd=(%RANDOM%*14400/3276

+1
timeout %rnd%
taskkill -f -IM "NecroBot.exe"
SET /a rnd=(%RANDOM%*14400/3276

+1
timeout %rnd%
goto :start
Edit: The smileys are 8 and ) next to each other.
I don't know how to remove smileys.

Code:
:start
start NecroBot.exe
SET /a rnd=(%RANDOM%*14400/32768)+1
timeout %rnd%
taskkill -f -IM "NecroBot.exe"
SET /a rnd=(%RANDOM%*14400/32768)+1
timeout %rnd%
goto :start
:gusta:
-
Post Thanks / Like - 2 Thanks
olofpp,
testt0r (2 members gave Thanks to EnzaDenino for this useful post)