Here you go a script for you and the ownedcore community written in 2 minutes.
Start script position mouse where ever you want and it will click at a random position on screen relatively to where you leave mouse when you start the script. If you want to adjust it increase or decrease the $offset value.
Random sleep timer from 10 seconds to 500 seconds to make click happen at random times.
Start the anti afk feature by pressing r on your keyboard.
Exit the script by pressing x on your keyboard.
PHP Code:
;---------------------------------------------
; Function:
; Anti AFK.
;
; Author j0achim @ www.ownedcore.com
; Date: 06/06/2012
;---------------------------------------------
HotKeySet("r","running")
HotKeySet("x","close")
Global $offset = 10
Global $mpos = MouseGetPos()
Global $r = 0
While 1
While $r = 1
;Click mouse at a random location on screen, based on where you leave mouse.
MouseClick("Left",Random($mpos[0]-$offset,$mpos[0]+$offset),Random($mpos[1]-$offset,$mpos[1]+$offset),1,10)
;Sleep for a random time, 10 seconds to 300 seconds.
Sleep(Random(10000,300000))
WEnd
Sleep(100)
WEnd
Func running()
If $r = 0 Then
$r = 1
Else
$r = 0
EndIf
$mpos = MouseGetPos()
EndFunc
Func close()
Exit
EndFunc