Nemo666 Posted September 1, 2008 Share Posted September 1, 2008 $mobhp = 0xFF3F7C WinWaitActive("Florensia") Sleep(2000) While 1 Send("{1}") Sleep(1111) If $mobhp = PixelGetColor(447,37) Then Send("{2}") Sleep(1111) Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Send("{2}") Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Send("{2}") Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Send("{2}") Sleep(1111) Send("{3}") Sleep(1111) Send("{4}") Sleep(1111) Sleep(1111) Else Sleep(1111) EndIf WEnd i think i might of got this a little wrong. im trying this to when it goes to that cord on the screen that it checks for the right color and then to excute the comands under and if it cant find the right color at the code is will loop over and over. can any one help ? Link to comment Share on other sites More sharing options...
Andreik Posted September 2, 2008 Share Posted September 2, 2008 PixelGetColor returns decimal value of pixel's color and you tried to compare to a hex value. Change this If $mobhp = PixelGetColor(447,37) Then with this If $mobhp = "0x" & Hex(PixelGetColor(447,37),6) Then Hope that helps. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Nemo666 Posted September 2, 2008 Author Share Posted September 2, 2008 aaa yes that did work nicely =] many thanks for your help i did have a problem but i just had to take the cords again and the color (cos its a window program) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now