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
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.
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
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.
Aion 1.9.0.3 sending keystrokes in background mode 08/29/2010 - Aion - 1 Replies Hello to all!
I'am trying to send keystrokes in BACKGROUND MODE to AION client using C++ (Builder2009):
I do it like that:
...
PostMessage(Window,WM_KEYDOWN, VK_OEM_MINUS, 0x00020001);
...
This function works good for me, but as i can see i can't send WASD or VK_MENU(ALT) and more, something like game protection
Free Aion Bot with Background mode enabled? 12/30/2009 - Aion - 2 Replies i tried AngelAion. it works! but i cant do other tasks while botting. >.<
someone tell me please? thanks
anti-AFK working in background 10/27/2007 - World of Warcraft - 0 Replies There's one that works? I work on my pc and usually i move it...but sometimes i forgot to move the pg and i get the deserter buff...
so i'm searching an anti-afk that work in background... do you know one?:confused: