Outdatedmp's AntiAFK (Multiclient)

Posts 1–15 of 15 · Page 1 of 1
mp's AntiAFK (Multiclient)
So as someone asked for an anti-afk thing for multiple clients i released one.
Don't have ever used AHK so this is basicm but it works !
Requierments : AutoHotKey (last version i guess)

How it works :
Just start it, it will simulate a key press (u) every 10 sec in average.
Press Numpad 8 to exit (can be changed)

Well providing screenshots would be useless, let me know if you think about something to improve.

How you get this ?
Just grab the source code and paste it in a .ahk file and start it!
You can also download it directly.


/!\ This won't work if you renamed Trove's window (Some account launchers are doing that, care)

 
Source code

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Loop
{
	WinGet, ID, list, Trove
	Z := 0
	Loop %id%
	{
		Z:= Z + 1
		ide := id%Z%
		WinGet, PID, PID, ahk_id %ide%
		ControlSend, , {u down}, ahk_pid %PID%
		WaitR(1)
		ControlSend, , {u up}, ahk_pid %PID%
		WaitR(1)
	}
	WaitR(100)
}

Numpad8::
ExitApp

WaitR(m)
{
	Random, Wait, 72, 125
	Wait := Wait * m
	Sleep, %Wait%
}


There are the virus scans (for some reason i can't post links):

virusscan.jotti.
org/fr-FR/filescanjob/s9spqxrrgr

www
.virustotal.
com/en/file/17b2b69afc54e7865f00fa0f3f0cdb77d8e7dc009bd2961176 531bcdf7ec924c/analysis/1441538811/

mpAntiAFK_mpgh.net.rar467 B · 177 downloads Clean
Just source code

/Approved
2 Questions, why can't i post links and why does the second link get "cutted" ? (like random blank char at the middle, but when i edit the char is good) ?
Quote Originally Posted by mpmoi View Post
2 Questions, why can't i post links and why does the second link get "cutted" ? (like random blank char at the middle, but when i edit the char is good) ?
You cant post links becasue you need 15(might be 20?) posts

Second one I dont really know
Thanks !
Since i won't farm post uselessly i guess it isn't a prob if the scans aren't in links.
what does this line do?

Z:= Z + 1
Z is a variable
assume Z has a value of 3
after "Z:= Z + 1" Z is 4
i think Z is counting the times that he anti-afk you
I don't remember.. I'm not home now. It might be useless (juste for testing or dunno) feel free to remove it if it is pointless

- - - Updated - - -

Sorry for double post ! DON'T Remove it ! It ensures that all accounts are loaded by thé bot and that it forgets none in the PiDs list!! (Feel free to delete previous post)
How to change the letter and time? I want the letter "i" and the time 1 minute.
Quote Originally Posted by Bomberzz View Post
How to change the letter and time? I want the letter "i" and the time 1 minute.
I made a couple changes to the script - it picks a random number from 1 to 5, and based on that changes the key that's sent. I increased the time as well - here's my entire code snippet.

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Loop
{
	WinGet, ID, list, Trove
	Z := 0
	Loop %id%
	{
		Z:= Z + 1
		ide := id%Z%
		WinGet, PID, PID, ahk_id %ide%
		Random, Rdm, 1, 5
		if Rdm = 1
			ControlSend, , {u down}, ahk_pid %PID%
			WaitR(10)
			ControlSend, , {u up}, ahk_pid %PID%
			WaitR(10)
		if Rdm = 2
			ControlSend, , {o down}, ahk_pid %PID%
			WaitR(10)
			ControlSend, , {o up}, ahk_pid %PID%
			WaitR(10)
		if Rdm = 3
			ControlSend, , {p down}, ahk_pid %PID%
			WaitR(10)
			ControlSend, , {p up}, ahk_pid %PID%
			WaitR(10)
		if Rdm = 4
			ControlSend, , {n down}, ahk_pid %PID%
			WaitR(10)
			ControlSend, , {n up}, ahk_pid %PID%
			WaitR(10)
		if Rdm = 5
			ControlSend, , {l down}, ahk_pid %PID%
			WaitR(10)
			ControlSend, , {l up}, ahk_pid %PID%
			WaitR(10)
	}
	WaitR(100)
}

Numpad8::
ExitApp

WaitR(m)
{
	Random, Wait, 72, 125
	Wait := Wait * m
	Sleep, %Wait%
}
If I understand correctly the WaitR function picks a random time between 72 and 125 ms and then multiplies it by the input - so WaitR(10) will wait between 720ms and 1250ms.
So this works for multi-boxing accounts correct?
Correct.

Just FYI - since the release of the Marketplace, this script spam-opens the Marketplace window by using the "U" key every few seconds. You can change this to be the INSERT key and it won't affect chat or open the Marketplace, but it will still keep you online:

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


Loop
{
    WinGet, ID, list, Trove
    Z := 0
    Loop %id%
    {
        Z:= Z + 1
        ide := id%Z%
        WinGet, PID, PID, ahk_id %ide%
        ControlSend, , {Insert down}, ahk_pid %PID%
        WaitR(1)
        ControlSend, , {Insert up}, ahk_pid %PID%
        WaitR(1)
    }
    WaitR(100)
}


Numpad8::
ExitApp


WaitR(m)
{
    Random, Wait, 72, 125
    Wait := Wait * m
    Sleep, %Wait%
}
Sorry i was ubable to login after yhe massive password reset. Since the marketplace is now on the U key I'll update it !

- - - Updated - - -

New thread opened for new version. Mods can close this one
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?