- 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:
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
For those who want to review the code here is the link:
https://github.com/icdance/pkmngoanj...starter_farmer
here is a template how to fill the config.ini
v1.0
Code:
[Settings]
TimeRestart = 1500000
PokeFarmerPath = D:\Pokemon Go\PokeFarmer\PokeFarmer.exe
PTC = 1
Google = 0
v1.1
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
- 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.
https://mega.nz/#!TRMCVTQQ!WLTRszIMf...UqIsFm0StAjGxI
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
)
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