Melkor2 Posted February 1, 2008 Share Posted February 1, 2008 Func _checkhealth() Do $pixeltest = Pixelgetcolor(459, 58) sleep(200) Until $pixeltest = 0x0C0301 endfuncoÝ÷ Ø m Ø^²+njب+)¥ÓÓ}5r§ë,äÓë®*mç²Ú0¢¹&¢·¥G+Å©©êÂkkÊ)à¶hÉë"z0Û"Ê+ç-r^jëh×6Func _checkhealth() Do $pixeltest = Pixelgetcolor(459, 58) sleep(200) Until $pixeltest Other Than = 0xBD0400 endfunc The color 0xBD0400 is static, and used in 3 other parts of the script. I don't want to go into explaining why. But I hope you understand what I'm asking. Link to comment Share on other sites More sharing options...
Achilles Posted February 1, 2008 Share Posted February 1, 2008 (edited) Seeing as it's constant, make it a constant:Const $COLOR = 0xBD0400Then I think this might be what you want for the second part: Until $pixeltest <> $COLOR Edited February 1, 2008 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Melkor2 Posted February 1, 2008 Author Share Posted February 1, 2008 (edited) I'll toss it in there, see how it goes. Does <> mean greater than or less than? basically telling the program "anything other than"? Edited February 1, 2008 by Melkor2 Link to comment Share on other sites More sharing options...
Jango Posted February 1, 2008 Share Posted February 1, 2008 Seeing as it's constant, make it a constant:Const $COLOR = 0xBD0400Then I think this might be what you want for the second part: Until $pixeltest <> $COLOR <> means "different" Link to comment Share on other sites More sharing options...
BrettF Posted February 1, 2008 Share Posted February 1, 2008 <> means "different"To be precise, Not = To. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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