Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AotoIT pixle help please

Discussion on AotoIT pixle help please within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
drzaco's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 14
Received Thanks: 5
AotoIT pixle help please

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!!!
drzaco is offline  
Old 06/28/2012, 09:05   #2
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Code:
While True
    If PixelGetColor(<position of Hp-Bar>) = <Color of HP-Bar> Then
        Send(<attack Keys>)
    Else
        Send("{Tab}")
    EndIf
WEnd
lolkop is offline  
Reply

Tags
autoit, bot, loop, pixel




All times are GMT +2. The time now is 20:28.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.