PatchedAutoRestarter for PokeFarmer

Posts 1–15 of 37 · Page 1 of 3
AutoRestarter for PokeFarmer
v1.1.2 released! Workaround for the update!

Not my release. Credits to fm365met on a different website.

NOTICE: If not compliant with MPGH rules please take down post. Just trying to help out fellow PokemonGo l337 hax0rz.

Re-starter written in AHK!


How to use:
1. Login into PokeFarmer once and set it to "Remember my password", close it.
2. 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 you put it in (if put on desktop, just create a new folder for it).
3. Open the config.ini with notepad or anything else, put your Pokefarmer.exe Path (e.g. C:\Users\LindaLovelace\Desktop\PokeFarmer\PokeFarm er.patched.exe) , the time you want to restart in milliseconds, and the account type (google or ptc) save and close.
4. Run the Re-starter again, it will login and restart automatically.

Template for settings:

Code:
[Settings]
TimeRestart = 1500000
PokeFarmerPath = C:\Pokemon Go\PokeFarmer\PokeFarmer.patched.exe
PTC = 1
Google = 0
Template for settings for v1.1 (Includes timing delay):
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

NOTE: Time restart is in milliseconds, so I would use 25 mins because PokeFarmer stops after that time.


I DO NOT TAKE ANY CREDIT FOR THIS RELEASE. ALL RIGHTS TO fm365met !!!!

Original 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%
	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
KNOWN ISSUES:
a. The default setting uses ptc. If you use google, set ptc=0 and google =1
b. If it doesn't click in the PTC/Google screen, it might be because of the delay between actions are too short. Increase delay between actions such as 500 milliseconds to correct issue.

UPDATES:
v1.0 = Original release

v1.1 = Original release + ability to set a delay for each step

v1.1.1 = fix not clicking on PTC/Google screen

v1.1.2 = Fix for autoupdating on Pokefarmer



Virus Scan v1.0:
https://www.virustotal.com/en/file/1...is/1470564500/
https://www.metadefender.com/#!/resu...xtracted/files

Virus Scan v1.1
https://www.virustotal.com/en/file/1...is/1470564756/
https://www.metadefender.com/#!/resu...xtracted/files

Virus Scan v1.1.1
https://www.metadefender.com/#!/resu...xtracted/files
https://www.virustotal.com/en/file/c...is/1470564851/

Virus Scan v1.1.2
https://www.metadefender.com/#!/resu...xtracted/files
https://www.virustotal.com/en/file/d...is/1470609214/

Detects two possible viruses. They are most likely false-positives. I am running this app currently and have also scanned it with AVG and it reads safe.
Restarter_farmer_v1.1.2_mpgh.net.rar337 KB · 901 downloads 3/61 malicious
Restarter_farmer v1.0_mpgh.net.rar337 KB · 39 downloads 2/54 malicious
Restarter_farmer v1.1_mpgh.net.rar337 KB · 18 downloads 2/57 malicious
Restarter_farmer v1.1.1_mpgh.net.rar337 KB · 55 downloads 2/54 malicious
them 2 false positives :3
Quote Originally Posted by itzkaydo View Post
them 2 false positives :3
its because its an AutoHotkey exe. They always make virus scanners go nuts even when they're clean
The path in config.ini, is it PokeFarmer.exe? Not PokeFarmer.patched.exe?
Quote Originally Posted by kennyk16 View Post
The path in config.ini, is it PokeFarmer.exe? Not PokeFarmer.patched.exe?
Correct. Use Pokefarmer.patched.exe as the path. You can edit the config.ini.
Github link isn't allowed
Quote Originally Posted by evanthinh View Post
Github link isn't allowed
quit trying to be a staff kid, and quit with your efforts in getting more posts, your the one special kind of leecher aint u?
Quote Originally Posted by SylosisViempyreal View Post
dont download just got a rat
You're an idiot. Its not even approved here yet. You can't download it at the moment unless you're part of staff. shove off
for those worried about a virus. The original Creator has posted the AHK script
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
all credits to FM365Met
sorry.
Where file edit?
Kinda noob here, can someone explain why is this needed? Does pokefarmer crush a lot and needs this to re login?
This is fix for

[15:06:22] Session expired. Relogging.
[15:06:24] Session expired. Relogging.
[15:06:27] Session expired. Relogging.
[15:06:29] Session expired. Relogging.
[15:06:32] Session expired. Relogging.
[15:06:34] Session expired. Relogging.
[15:06:36] Session expired. Relogging.
[15:06:39] Session expired. Relogging.
[15:06:41] Session expired. Relogging.
[15:06:43] Session expired. Relogging.
[15:06:46] Session expired. Relogging.
[15:06:48] Session expired. Relogging.
[15:06:50] Session expired. Relogging.
[15:06:52] Session expired. Relogging.

?
dont download just got a rat
Posts 1–15 of 37 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?