Health Bar help!

09/09/2011 08:17 Dynomike#1
So, this will check my health bar
within a rectangle.

But when I put it in front of my script, it wont continue onto the rest of my script, (hellgate global leveling bot).
The rest of my script works (bot runs in kills things, runs out, resets instance, loop...but I want to add a health checker).
Where do I place it within my script if I want it to continuously check for my health bar?
I've just barely gotten into autoit programming, sorry if I'm noobing it.
I've scowered the netz but no luck for solutions
:(

PHP Code:
While
Sleep(100)
$coord PixelSearch1858172308245781295255 )
If 
Not @error Then
    Send
("{q 5}")
EndIf
WEnd 
09/09/2011 16:47 butter123#2
make a new function in which you check the health once, and then call the function every time you want it to be checked.

maybe use timerinit and timerdiff
09/09/2011 17:37 BlackHybrid#3
U can also do it with AdlibRegister. This function calls a Func during running your script.
But why do you set your shade-variation para at PixelSearch to 255?
09/13/2011 08:56 Dynomike#4
I think i'm going to just have another autoit script loop whilst this one is going, faster fix. sorry i didn't respond sooner, i was on vacation ;)

Quote:
Originally Posted by BlackHybrid View Post
U can also do it with AdlibRegister. This function calls a Func during running your script.
But why do you set your shade-variation para at PixelSearch to 255?
changed 255 to 10, hehe i was trying to troubleshoot a different issue with the 255 b/c i couldn't recall the exact black pixel.
ty for your efforts!

Quote:
Originally Posted by butter123 View Post
make a new function in which you check the health once, and then call the function every time you want it to be checked.

maybe use timerinit and timerdiff
ty for your efforts aswell