kcd-clan Posted April 2, 2006 Share Posted April 2, 2006 I was doing =not but then it wasent working right. how can i fix it? Func potcheck() Do $p1=PixelGetColor(441,500) MsgBox(0,"1",$p1) Until $p1 Not 263172 Do $p2=PixelGetColor(472,500) MsgBox(0,"2",$p2) Until $p2 Not 526344 Do $p3=PixelGetColor(502,500) MsgBox(0,"3",$p3) Until $p3 Not 105376 Do $p4=PixelGetColor(531,500) MsgBox(0,"4",$p4) Until $p4 Not 263172 EndFunc Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 Func potcheck() Do $p1=PixelGetColor(441,500) MsgBox(0,"1",$p1) Until $p1 <> 263172 Do $p2=PixelGetColor(472,500) MsgBox(0,"2",$p2) Until $p2 <> 526344 Do $p3=PixelGetColor(502,500) MsgBox(0,"3",$p3) Until $p3 <> 105376 Do $p4=PixelGetColor(531,500) MsgBox(0,"4",$p4) Until $p4 <> 263172 EndFunc <> means not equal to. Link to comment Share on other sites More sharing options...
kcd-clan Posted April 2, 2006 Author Share Posted April 2, 2006 holy crap i never seen that in documents thanks alot. Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 2, 2006 Moderators Share Posted April 2, 2006 holy crap i never seen that in documents thanks alot.This could have been fixed like this too:Func potcheck() Do $p1 = PixelGetColor(441,500) MsgBox(0, "1", $p1) Until Not ($p1 == 263172) Do $p2 = PixelGetColor(472,500) MsgBox(0, "2", $p2) Until Not ($p2 == 526344) Do $p3 = PixelGetColor(502,500) MsgBox(0, "3", $p3) Until Not ($p3 == 105376) Do $p4 = PixelGetColor(531,500) MsgBox(0, "4", $p4) Until Not ($p4 == 263172) EndFunc ;==>potcheckBTW... what is "potcheck"? I can only think of 420 things for this Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
greenmachine Posted April 2, 2006 Share Posted April 2, 2006 This could have been fixed like this too:Func potcheck() Do $p1 = PixelGetColor(441,500) MsgBox(0, "1", $p1) Until Not ($p1 == 263172) Do $p2 = PixelGetColor(472,500) MsgBox(0, "2", $p2) Until Not ($p2 == 526344) Do $p3 = PixelGetColor(502,500) MsgBox(0, "3", $p3) Until Not ($p3 == 105376) Do $p4 = PixelGetColor(531,500) MsgBox(0, "4", $p4) Until Not ($p4 == 263172) EndFunc ;==>potcheckBTW... what is "potcheck"? I can only think of 420 things for this Clever.. but pot could also stand for potion.... 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