Anti AFK bot with AHK?

DedeRaditya

Active member
Joined
Apr 12, 2015
Messages
45
Reaction score
1
I need anti afk bot that can press a, s, d, or w randomly

I tried make it but i cannot
I use SendInput S

But how to make it looping
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
UPD: Mistaken with autoit, use - Loop %number% { }
Also : "The built-in variable A_Index contains the number of the current loop iteration. It contains 1 the first time the loop's body is executed. For the second time, it contains 2; and so on. If an inner loop is enclosed by an outer loop, the inner loop takes precedence. A_Index works inside all types of loops, including file-loops and registry-loops; but A_Index contains 0 outside of a loop."
 

MrUnknown

Active member
Joined
Oct 24, 2013
Messages
140
Reaction score
4
1::  ;1to start
loop
{
Send, t/ENTERDESIREDCOMMAND!!!!!!!{enter} //You can also just remove t/ENTERDESIREDCOMMAND and put W instead so it will move you forward every 15 seconds
sleep,15000 ;Waits 15 seconds
If Stop=1
{
Stop=0
break
}
}
return

2:: ;2 to stop
Stop=1
return 7681
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
http://www.mediafire.com/download/pofkgmdfs2m3oy7/antiafk.rar
activate = numpadadd
pause = numpadsub
edit ini to fit ur needs
 
Top