-
Sergeant
Originally Posted by
Ripper3
Yes, but rename the .txt to have a .bat ending. So it looks like this:
Attachment 37279
Thank you sir! This is very helpful!
-
Sergeant
Originally Posted by
ElGuri
Pulse Y to continue open
What do you mean by Pulse Y?
-
Member
Originally Posted by
ElGuri
Pulse Y to continue open
It did not ask for a key press to open and start the program, which brings me to my next question...
Is there a way to hide the CMD window when the .bat is executed?
I looked up and saw exit command, but it might give problems...then I saw echo and that was leading to creating some other type of script.
Thanks to the OP for the questions and for the GREAT response!!! Will leave rep if I can.
-
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.
man you're a hero.
for someone who's spending time a lot (probably too much) lurking here i really have been looking for a program of some sort.
now my journey has completed thanks to this guy.
-
Sergeant
Originally Posted by
Ev0luti0n
It did not ask for a key press to open and start the program, which brings me to my next question...
Is there a way to hide the CMD window when the .bat is executed?
I looked up and saw exit command, but it might give problems...then I saw echo and that was leading to creating some other type of script.
Thanks to the OP for the questions and for the GREAT response!!! Will leave rep if I can.
How was the .bat file sir? Any thoughts? I haven't run down on doing this I'm still at my office.
-
Member
how about can u make .bat file like" run necrobot (account1) > stop after 1h> run necrobot (account2)>stop after 1h>run necrobot (account1)........?????
-
Contributor
Originally Posted by
aznguyz
how about can u make .bat file like" run necrobot (account1) > stop after 1h> run necrobot (account2)>stop after 1h>run necrobot (account1)........?????
This batch file runs NecroBot1 for 1 h, then kills it, runs NecroBot2 for 1 h, then kills it and starts again with running NecroBot1
:start
start /D "NecroBot1" NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
start /D "NecroBot2" /min NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
goto start
Place bat like shown in picture:
-
Post Thanks / Like - 2 Thanks
darkjuly,
wordup (2 members gave Thanks to Ripper3 for this useful post)
-
Sergeant
Originally Posted by
Ripper3
This batch file runs NecroBot1 for 1 h, then kills it, runs NecroBot2 for 1 h, then kills it and starts again with running NecroBot1
Place bat like shown in picture:

"timeout 5" << How long is the pause for this before resuming to necrobot2? YOU ARE DEFINITELY MY SAVIOUR!!
-
Contributor
all times are in seconds. It waits 5 seconds before starting the next bot.
-
Post Thanks / Like - 1 Thanks
thjnh159 (1 members gave Thanks to Ripper3 for this useful post)
-
Member
@Ripper
Is there a way to make the command prompt (CMD) minimize or run in the background?
-
Member
Originally Posted by
EnzaDenino
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:
thx a lot guys, very helpful
what would be the code if i want randomize between eg 1h to 4h
and what does the 32768 stand for?
-
Member
Originally Posted by
Ripper3
This batch file runs NecroBot1 for 1 h, then kills it, runs NecroBot2 for 1 h, then kills it and starts again with running NecroBot1
Place bat like shown in picture:

If my bot1 is in C:\necro1\NecroBot.exe and my bot 2 C:\necro2\NecroBot.exe what I need write in bat file please ? Sorry for my bad english
-
Member
Originally Posted by
cedricdu94
If my bot1 is in C:\necro1\NecroBot.exe and my bot 2 C:\necro2\NecroBot.exe what I need write in bat file please ? Sorry for my bad english
Look back at what Ripper3 wrote in Post #22
:start
start /D "Necro1" NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
start /D "Necrot2" /min NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
goto :start
60=1 minute
3600=1 hour
-Test it out by changing each instance of necro to run for 1-5 minutes (60-300) instead of 3600 (timeout 3600 is the amount of time it will run)
-Once you start the .bat, it should run at the time you specified and then stop and start the other necro....(timeout 5 is the delay that it waits before it starts NecroBot2)
-Just make sure that each config is different in each necro folder (login, PW, coordinates)
Last edited by Ev0luti0n; 08-16-2016 at 02:13 PM.
-
Contributor
Originally Posted by
cedricdu94
If my bot1 is in C:\necro1\NecroBot.exe and my bot 2 C:\necro2\NecroBot.exe what I need write in bat file please ? Sorry for my bad english
Just change NecroBot1 to necro 1 and NecroBot2 to necro2
:start
start /D "
necro1" NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
start /D "
necro2" /min NecroBot.exe
timeout 3600
taskkill /IM necrobot.exe
timeout 5
goto start
-
Post Thanks / Like - 1 Thanks
thjnh159 (1 members gave Thanks to Ripper3 for this useful post)
-
Member
Originally Posted by
Ripper3
Just change NecroBot1 to necro 1 and NecroBot2 to necro2
Very help. I have other question. We have to type 'Y' to accept the risk since necrobot 0.8.8 if we enable the snipping. How could we type 'Y' with the script?