[AutoIt] anti-AFK Bot Background Mode

10/03/2009 11:30 darkmaka#1
Hi!

this is my first post here, so...

Hello Everyone!!

I made this simple anti-AFK bot with background mode so you can do something else when Aion is minimized.
It just hit "P" every 10 sec.
It works on Full screen and Windowed mode.

Tested on Win XP x84, Win Vista x64, Win 7 x64.
Code:
;~ **************************************************
;~ Aion Anti-AFK Background Mode
;~ Ver 1.0 10/1/2009
;~
;~ Author: DarKMaKa
;~
;~ For ***************
;~ **************************************************
HotKeySet("{Pause}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

Global $Paused, $WinTitle ='AION Client'
TogglePause()

While 1
	If WinExists($WinTitle) Then
			ControlSend($WinTitle, "", "", "p", 1)
				Sleep(1000)
			ControlSend($WinTitle, "", "", "p", 1)
				Sleep(10000)
	Else
		MsgBox(0, "No AION!!", "Can't find AION Window!"&@CRLF&"Launch the game before the anti-AFK."&@CRLF&""&@CRLF&"Bot will close now.", "", "")
		Exit
	EndIf
WEnd

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Anti-AFK Paused! (Pause = Enable - Esc = Exit)',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc
I also made a litle ico :p
[Only registered and activated users can see links. Click Here To Register...]
10/03/2009 20:25 keradhax#2
Works great, thank you!
10/05/2009 20:18 b00n0#3
approve???
06/04/2010 07:58 legler2#4
how to use this?
06/09/2010 05:36 LaZZer010#5
It looks simple enough.

legler2;
Run Aion and then start the .exe. Push 'pause' (should be above your 'page-up' key) and the script will keep your character alive.

I'm wondering if this is the way to get the new in-game rested exp. Both Energy of Repose and Energy of Salvation stack. To gain Salvation you need to stay in-game doing nothing for a long time. This script will help that.
06/09/2010 22:10 DarkOPM#6
Antivir: Nothing found
ArcaVir: Nothing found
AVG: Nothing found
BitDefender: Nothing found
VirusBlokAda32: Nothing found
VirusBuster: Nothing found

[Only registered and activated users can see links. Click Here To Register...]
Scanned by [Only registered and activated users can see links. Click Here To Register...]
08/07/2010 20:04 Mogile#7
was bringt dass ?
08/09/2010 03:21 -▷DΛŔҠSĪDƐ◁-#8
tested?
08/09/2010 17:09 gandbusta92#9
it's just a simple auto-it script that constantly does something on your aion game to prevent the game form disconnecting you form the server

good if you go afk for a long time and servers are full
08/10/2010 22:53 WarMasterRealOne#10
going to test it :P
08/11/2010 01:30 bacardixx#11
why do you need that afk bot ?
08/11/2010 12:09 joka666#12
The fact that there is no randomisation means you have a good chance of receiving at least a temporary ban

Try this instead

Quote:

If WinExists($WinTitle) Then
ControlSend($WinTitle, "", "", "p", 1)
$rndnumber = random(14200, 3645400)
sleep($rndnumber)
ControlSend($WinTitle, "", "", "p", 1)
$rndnumber = random(14200, 3645400)
sleep($rndnumber)

this will press the key randomly between 1 second & 6 minutes so much more untraceable
08/11/2010 12:29 obilisko#13
Working Great Thanks :)
08/16/2010 11:00 joka666#14
For those that want randomisation to the keypresses (makes it near impossible to be caught or banned for using a clicker)
Quote:
HotKeySet("{Pause}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

Global $Paused, $WinTitle ='AION Client'
TogglePause()

While 1
If WinExists($WinTitle) Then
ControlSend($WinTitle, "", "", "p", 1)
$rndnumber = random(14200, 3645400)
sleep($rndnumber)
ControlSend($WinTitle, "", "", "p", 1)
$rndnumber = random(14200, 3645400)
sleep($rndnumber)
Else
MsgBox(0, "No AION!!", "Can't find AION Window!"&@CRLF&"Launch the game before the anti-AFK."&@CRLF&""&@CRLF&"Bot will close now.", "", "")
Exit
EndIf
WEnd

Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Anti-AFK Paused! (Pause = Enable - Esc = Exit)',0,0)
WEnd
ToolTip("")
EndFunc

Func Terminate()
Exit 0
EndFunc
08/18/2010 00:16 juker#15
@joka666:

just out of curiosity why did u choose between 14.2 seconds and 60.76 minutes? the sleep() function expects a value in miliseconds which is 1/1000th of 1 second.. i rewrote this little script myself but i used a random value between 1s and 60s for first part of the loop and between 5s and 3m for 2nd part. 60 minutes seems excessive to me because ive been disconnected after only 30m of AFK'ing before..

FYI between 1s and 6m would be:
$rndnumber = random(1000, 360000)

@OP
ty for this idea! my version simply randomizes the time as i stated above and also includes a tooltip with the value of $rndnumber so you have an idea how long its sleeping and can easily verify its working/not paused, etc.