PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

How to use keystroke, the auto starter?

Open Leodenact opened this issue 9 years ago • 13 comments

Anyone know how to set up the autostarter? Do I need to download any files except the keystroke.txt? Cheers :)

Leodenact avatar Aug 10 '16 20:08 Leodenact

Wat

jabbink avatar Aug 10 '16 20:08 jabbink

So I wanna start up my bots automaticly and restart them every 1.5 hour, Any clues on how to make this? I'm really bad at understanding how to program and script things, I just want a userfriendly program or guide on how to do it :)

Leodenact avatar Aug 10 '16 21:08 Leodenact

Make a .bat file in the pokemon folder where the bot is. Call it restartscript.bat or something. Then put in the following stuffs.

:loop START "pogobot" start.bat &^ timeout /t 5400 &^ taskkill /fi "WINDOWTITLE eq pogobot - start.bat_" /f &^ taskkill /fi "WINDOWTITLE eq pogobot - start.bat_" /f goto loop

make sure your start up .bat file is called start.bat.

Open the restartscript.bat first and it'll do the rest.

Killertom63 avatar Aug 10 '16 21:08 Killertom63

Do I need to edit anything of that you wrote @Killertom63 or can I just copy paste?

Leodenact avatar Aug 10 '16 21:08 Leodenact

As long as your start.bat file is called "start.bat" you're fine.

Killertom63 avatar Aug 10 '16 21:08 Killertom63

@Killertom63 Sorry for being so bad at this. So I opened a notepad file and renamed it to restartscript.bat and pasted :loop START "pogobot" start.bat &^ timeout /t 5400 &^ taskkill /fi "WINDOWTITLE eq pogobot - start.bat" /f &^ taskkill /fi "WINDOWTITLE eq pogobot - start.bat" /f goto loop

after that I saved it as a bat file.

Now what is this start up bat file you are talking about? Thanks for ur help

Leodenact avatar Aug 10 '16 21:08 Leodenact

In your directory you should have start.bat and restartscript.bat.

Just run the restartscript, that will run the start.bat and force close it every 1 hour and 30mins. Then it'll run it again.

Killertom63 avatar Aug 10 '16 22:08 Killertom63

I did the restart script, but how do I create the start.bat script? I am so confused, should I rename something in my PokemonGoBot-0.5.1 folder ( the bot folder ) to start.bat?

Leodenact avatar Aug 10 '16 22:08 Leodenact

@Killertom63 when I open the restartscript it only opens an empty cmd and loops it every 1.5 hour. I need the empty cmd file to run java -jar PokemonGoBot-0.5.1.jar --server.port=8092

Can u add so after it will automaticly type "java -jar PokemonGoBot-0.5.1.jar --server.port=8092" too after it starts start.bat

Leodenact avatar Aug 10 '16 22:08 Leodenact

Is there a pause between kill and restart ? I would like to use something like this but I dont wanna get a soft ban either. If you start back from starting point quick it would probably soft ban u correct?

ghost avatar Aug 11 '16 02:08 ghost

First of all thanks for this amazing bot. I think it's one of the better bots for mac osx. Is there a possibility to make the 'loop' in a new update?

GonnaLoseItAll avatar Aug 11 '16 08:08 GonnaLoseItAll

I tried to do this in mac and I have created this executable "start" which basically automates the "java -jar Poke....0.5.2.jar --server.port=8090"

screen shot 2016-08-11 at 11 09 45 pm

The loop script "restartscript" created by @Killertom63 is for Windows, can someone help me convert it to unix?

I have created the executable "restartscript" with the codes from @Killertom63 but obviously it won't work.

screen shot 2016-08-11 at 11 12 31 pm

Thanks guys!

zoegalaxy avatar Aug 11 '16 15:08 zoegalaxy

@zoegalaxy are you using a MAC, cus if i am not wrong this is for windows

@swtrpeter if you put timeout /t 5400 &^ after the 2nd kill command, it will tell it to wait before doing the loop. make sure to change the sec to something better than 1 1/2 hours otherwise you it will wait 1 1/2 hours before restarting.

classicalDonkey avatar Aug 11 '16 18:08 classicalDonkey