Originally Posted by
pvpsuite
Adding a bit more functionality to prevent bans won't hurt performance or anything, and to be honest nobody cares about file size difference in such amounts. :P
Anyway I won't go into an argument, just gave my 2c, good job anyhow.
Actually they won't be banning such an anti-afk script! Give me 30s and I make the script you are asking
- - - Updated - - -
And the why I didn't made it press WASD or sth else : if you are playing it will stop your movement or disturb it at lease so it is really annoying. And this is keyboard-dependant (AZERTY/QWERTY)
- - - Updated - - -
Code:
Loop{
WinGet, l, list, ahk_exe Trove.exe
Loop %l%
Random, k, 1, 5
if (k=1)
ControlSend, , w, % "ahk_id" l%a_index%
else if (k=2)
ControlSend, , a, % "ahk_id" l%a_index%
else if (k=3)
ControlSend, , s, % "ahk_id" l%a_index%
else if (k=4)
ControlSend, , d, % "ahk_id" l%a_index%
else
ControlSend, , b, % "ahk_id" l%a_index%
Random, t, 300000, 540000
Sleep, %t%
}
Numpad0::
ExitApp
Here's the code you asked for ! Enjoy