PokemonGo emulator script Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
pokemongoplayer

PokemonGo emulator script

Post by pokemongoplayer » 26 Jul 2016, 03:30

Hi all,

Looking for a script that will do the followingw:

Press and hold the {W} key for 30 seconds
then
Press and hold the {A} key for 30 seconds
then
Press and hold the {S} key for 30 seconds
then
Press and hold the {F} key for 30 seconds
then
stop the script

This script will be popular for the new PokemonGO game (for those that emulate). Your character will walk around in a massive cirlcle (30 seconds in each direction).w

pokemongoplayer

Re: PokemonGo emulator script

Post by pokemongoplayer » 26 Jul 2016, 03:39

Oh forgot to mention,

I need a combination of keys to start the script.

maybe ALT + 1

i'll also be in active window, so no smarts needed to dectect the program/

highend
Posts: 47
Joined: 24 Nov 2014, 16:57

Re: PokemonGo emulator script

Post by highend » 26 Jul 2016, 04:08

Like:

Code: Select all

#NoEnv
;#NoTrayIcon
#Persistent
#SingleInstance force

!1::
	keys := "W|A|S|F"
	Loop, Parse, keys, |
	HoldKey(A_LoopField)
return

HoldKey(key, timeToHold:=30) {
	timeToHold *= 1000
	tick := A_TickCount

	Loop {
		if (A_TickCount - tick > timeToHold)
			break
		Send, {%key%}
		Sleep, 25
	}
	return
}

User avatar
boiler
Posts: 17397
Joined: 21 Dec 2014, 02:44

Re: PokemonGo emulator script  Topic is solved

Post by boiler » 26 Jul 2016, 04:38

Nice script, but you are sending the key over and over rather than holding it. Your HoldKey function can become:

Code: Select all

HoldKey(key, timeToHold:=30) {
	Send, {%key% down}
	Sleep, timeToHold * 1000
	Send, {%key% up}
}

Post Reply

Return to “Ask for Help (v1)”