[AutoIt] anti-AFK Bot Background Mode v2

09/26/2010 02:20 Kololand#1
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: Kololand
;~
;~ 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

[Only registered and activated users can see links. Click Here To Register...]

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...]
09/28/2010 12:20 Griefling#2
not working.
10/16/2010 13:36 Todesschrei#3
der klappt wunderbar ist aber ne copy and past Sache von nem script n paar Seiten vorher
11/07/2010 06:28 vvarasil#4
Quote:
Originally Posted by Griefling View Post
not working.
me too
11/19/2010 05:11 Hacker-01#5
Not working for me either
11/19/2010 15:09 Blastradius#6
You need to make your character move, perform skills, talk..
Only then updates are send and the timer is reset. Easiest is regular jumps. :P