i made a pixelbot for quakelive dude.. just made now, it works okish, not the best, but it gives you a great idea on what to do to get your own one working very well :D
HTML Code:
;; commands include:
;;F8 = Fkey8 to Pause/Unpause the bots searching.
;;F9 - Fkey9 to close the bot completely
;; created by Shad0wFX on 24/11/11 @ 12:47pm
;; please do not distribute/resend to anybody as this is copywrited.
; and for personal use ONLY
#include <Misc.au3>
Global $Paused
HotKeySet("{F9}", "_exit")
HotKeySet("{F8}", "tpauz")
AutoItSetOption( "PixelCoordMode", 1)
; Variables
$wgh = WinGetHandle("QUAKE LIVE - Now Playing! - Mozilla Firefox")
$color = "0x669546"
;the core/while loop
While 1
;below - search left(250 to centre) top(150 down) right(900 in) and bottum(500 up) for the $color pixel within '4' shades using step '1'
$coord = PixelSearch(250, 150, 900,500, $color,7, 1, $wgh)
;below - basically if the pixels color is found, then..
If IsArray($coord) Then
;below - move your mouse over the target and..
MouseMove($coord[0], $coord[1], 1)
; below - search co-ordinates from $coord variable to find the location of the pixel(enemy), shoot the gun(left click) '2' times, at the fastest speed'1'(1 - fastest 100 - slowest)
MouseClick("left",$coord[0],$coord[1],5,1)
;below - end the statement so it doesnt loop over and over constantly
EndIf
WEnd
While 1
Sleep(100)
WEnd
Func tpauz()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Your Script is Now: Paused',540,540)
WEnd
ToolTip("")
EndFunc
Func _exit()
Sleep(10)
Exit 0
EndFunc