- Information:
A simple restarter written with ahk to fix the temp issue with pokefarmer stop working.
exe made by ahk can be easily reversed back to .ahk file. for those who worried about virus, i advise you don't even have to download my compiled exe, copy my code, compile it yourself to see if it is identical with mine, 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.
GMT+10 19:38pm Fixed PTC/Google screen not clicking. version 1.1.1
GMT+10 20:20pm it seems pokefarmer fix the bug with the latest update so I will keep this restarter as it is now.
GMT+10 20:40pm version 1.1.2 option to update or not.
- 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: NOTE: you need to delete your old config.ini file each time you switch to a new version.
v 1.1.2 add option whether to apply update when there is a new version
https://mega.nz/#!DUdTSCBD!Zkp4Gx3F1...jVAmYLNeKgJNpw
if you have already updated your bot to the latest version, please check this link: Cred@Legnadrak
http://www.ownedcore.com/forums/poke...ml#post3523158 (AutoRestarter for PokeFarmer)
- History versions:
v 1.0 Working
https://mega.nz/#!vQ0TBLYA!_9RjUsXQr...mYARqj3qqHF4AU
v 1.1 for those who want to set delay for each step
https://mega.nz/#!fF80yA6I!e8iBpdngO...QMvk8dcf1sFdSw
v 1.1.1 fix not clicking on PTC/Google screen
https://mega.nz/#!fI8iVZ6T!8dUzmGJks...SJsxhetb29QRqg
here is a template how to fill the config.ini
v1.0
v1.1Code:[Settings] TimeRestart = 1500000 PokeFarmerPath = D:\Pokemon Go\PokeFarmer\PokeFarmer.exe PTC = 1 Google = 0
- Issues:Code:[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 Disable_update = 1
a. the default is using ptc. if you use google. set ptc=0 and google =1
b. change the default delay if you find the restarter act too fast.
AHK Code
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 Disable_update = 1 ) 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 iniRead, Disable_update, config.ini, Settings, Disable_update if strlen(Disable_update) <1 Disable_update := 1 if ptc = 1 coordy := 56 else coordy := 86 Loop { TrayTip, Starting Service..., Pokefarmer Run,%PokeFarmerPath%,,,pid1 sleep,%Delay_Launch_StartBot% if Disable_update = 1 { IfWinNotActive, Update WinActivate, Update WinActivate, Update Send, {Tab} Sleep, 50 Send, {Space} Sleep, 50 } else { ifWinNotActive, Update WinActivate, Update WinActivate, Update Send, {Space} Sleep, 50 ExitApp } IfWinNotActive, ahk_pid %pid1% WinActivate, ahk_pid %pid1% WinWaitActive,ahk_pid %pid1% MouseClick, left, 228, 137, 1 Sleep, %Delay_StartBot_ChooseAccount% 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