Skip to content
Guest Big Announcement

AutoRestarter for PokeFarmer

Featured Replies

Updated
THIS IS NOT MY PROGRAM! I DID NOT MAKE THIS! CREDIT GOES TO ORIGINAL OWNER!

 

- Information:

A simple restarter written with ahk.

 

exe made by ahk can be easily reversed back to .ahk file for those who worried about virus, you don't even have to download my compiled exe if you know ahk

 

- Edit:

GMT+10 18:38pm from the feedback it can be used for multiple instance.

GMT+10 18:58pm Update a new version that can configure delay between each action.

 

- How to use:

a. login the pokefarmer once and set it to "Remember my password", close it.

b. download the exe file from the link and run. the first time you run, it will create a config.ini file in the same folder where you put the restarter

c. open the config.ini with notepad or anything else, put your Pokefarmer.exe Path, time you want to restart in millisecond, and the account type. save and close.

d. run the restarter again, it will login and restart automatically.

 

 

- Download link:

This is the hidden content, please

 

 

here is a template how to fill the config.ini

v1.0



[Settings]
TimeRestart = 1500000 
PokeFarmerPath = D:\Pokemon Go\PokeFarmer\PokeFarmer.exe
PTC = 1
Google = 0


 

v1.1



[Settings]
TimeRestart = 20000
PokeFarmerPath =D:\Pokemon Go\PokeFarmer_v1.0.82\PokeFarmer\PokeFarmer.patched.exe
PTC = 1
Google = 0
Delay_Launch_StartBot = 4000
Delay_StartBot_ChooseAccount = 1500
Delay_ChooseAccount_PTCGoogle = 1000


 

- Issues:

a. the default is using ptc. if you use google. set ptc=0 and google =1

b. if it doesn't click in the PTC/Google screen, it might cause the delay between actions are too short. here is another version with 500ms delay between actions. see if it can resolve the problem. 

This is the hidden content, please

 

AHK Code





#Persistent
#SingleInstance
 
IfNotExist, config.ini
{
content =
(
[Settings]
TimeRestart =
PokeFarmerPath =
PTC = 1
Google = 0
Delay_Launch_StartBot = 4000
Delay_StartBot_ChooseAccount = 1500
Delay_ChooseAccount_PTCGoogle = 1000
)
FileAppend, %content%, config.ini
ExitApp
}
 
iniRead, TimeRestart, config.ini, Settings, TimeRestart
iniRead, PokeFarmerPath, config.ini, Settings, PokeFarmerPath
iniRead, ptc, config.ini, Settings, PTC
iniRead, google, config.ini, Settings, Google
iniRead, Delay_Launch_StartBot, config.ini, Settings, Delay_Launch_StartBot
iniRead, Delay_StartBot_ChooseAccount, config.ini, Settings, Delay_StartBot_ChooseAccount
iniRead, Delay_ChooseAccount_PTCGoogle, config.ini, Settings, Delay_ChooseAccount_PTCGoogle
 
 
if ptc = 1
coordy := 56
else
coordy := 86
 
 
Loop
{
TrayTip, Starting Service..., Pokefarmer
Run,%PokeFarmerPath%,,,pid1
sleep,%Delay_Launch_StartBot%
IfWinNotActive, ahk_pid %pid1%
WinActivate, ahk_pid %pid1%
WinWaitActive,ahk_pid %pid1%
MouseClick, left, 228, 137, 1
Sleep, %Delay_StartBot_ChooseAccount%
WinActivate, Pokefarmer
MouseClick, left, 183, %coordy%, 1
Sleep, %Delay_ChooseAccount_PTCGoogle%
Send, {Space}
sleep, %TimeRestart%
IfWinExist, ahk_pid %pid1%
WinKill, ahk_pid %pid1%
Sleep, 1000
}
return
 
^!e::
ExitApp


Updated by TheOnlySkiff69

  • Replies 38
  • Views 7.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

Unbenannt.jpg

 

 

:WTF:  :sorry:

Updated by Unconed23

thanks for finding this or make this!

 

Did you even before you download something? :mad:


THIS IS NOT MY PROGRAM! I DID NOT MAKE THIS! CREDIT GOES TO ORIGINAL OWNER!

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.