AotoIT pixle help please

06/27/2012 22:58 drzaco#1
Im working on my first bot and my issue so far is im nubbing it up thinking about this wrong and cant figure out how to do this one part with pixel search

I wanna find the pixel (done)
Send my commands(done)
When that pixel is gone send a diff command(promblem)

So I wanna find the HP bar if its red send me attacks
when the red is gone send TAB (lock next target)
I tryed a few things and i just not sure why it wont work.
DO
this
Until that = false
i thought but that dont work lol
Hope you can help me thanx.

Could really use some help here please!!!
06/28/2012 09:05 lolkop#2
Code:
While True
    If PixelGetColor(<position of Hp-Bar>) = <Color of HP-Bar> Then
        Send(<attack Keys>)
    Else
        Send("{Tab}")
    EndIf
WEnd