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
PokemonGo emulator script Topic is solved
Re: PokemonGo emulator script
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/
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/
Re: PokemonGo emulator script
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
}
Re: PokemonGo emulator script Topic is solved
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}
}