MAJORSAM Posted May 28, 2009 Author Share Posted May 28, 2009 my question is how to get a "sleep" or anything else into my script, until color changes, because While Not PixelGetColor($Coord0[0], $Coord0[1]) = "FFFF00" Then is not working Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2009 Developers Share Posted May 28, 2009 my question is how to get a "sleep" or anything else into my script, until color changes, because While Not PixelGetColor($Coord0[0], $Coord0[1]) = "FFFF00" Then is not working I understand that this is not working as you have been told by us and Au3check. Have you bothered opening the helpfile and checking the syntax for the While statement? Do you see anywhere in that syntax a THEN defined at the end of the line? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
trancexx Posted May 28, 2009 Share Posted May 28, 2009 Major, you should lose then. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
nf67 Posted May 28, 2009 Share Posted May 28, 2009 (edited) my question is how to get a "sleep" or anything else into my script, until color changes, because While Not PixelGetColor($Coord0[0], $Coord0[1]) = "FFFF00" Then is not working Possibly While PixelGetColor($Coord0[0], $Coord0[1]) <> "FFFF00" Then ..... WEndoÝ÷ ÚÚºÚ"µÍÂ[[^[Ù]ÛÛÜ ÌÍÐÛÛÜÌK ÌÍÐÛÛÜÌWJHH ][ÝÑ ][Ý ? Your question isn't really clear to me (I have to admit I'm not such an expert though, unlike Jos), why would you want your sleep to wait if something is a statement isn't true? I mean, [While X is NOT true do Nothing] is the same as [While X IS true do Something], right? Edited May 28, 2009 by nf67 Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2009 Developers Share Posted May 28, 2009 Possibly While PixelGetColor($Coord0[0], $Coord0[1]) <> "FFFF00" Then Yea right ... just add some more confusion here.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
nf67 Posted May 28, 2009 Share Posted May 28, 2009 Yea right ... just add some more confusion here....Excuse me, that's why I mentioned possibly ;-) Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2009 Developers Share Posted May 28, 2009 (edited) Excuse me, that's why I mentioned possibly ;-)possibly what?Did you try your first "possibility" ? Edited May 28, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
nf67 Posted May 28, 2009 Share Posted May 28, 2009 I have tried neither, I was replying @ "how to get a "sleep" or anything else into my script, until color changes". With "Possibly" I meant "Could it possibly be...". Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2009 Developers Share Posted May 28, 2009 (edited) I have tried neither, I was replying @ . With "Possibly" I meant "Could it possibly be...".Ok, let me spell it out to you and the OP: The syntax for a While.. Wend, according the Helpfile looks like: While <expression> statements ... WEnd ... and does not contain a Then at the end of the While statement! Now please stop posting invalid possibilities to avoid any further confusion. You first possibility should have looked like: While PixelGetColor($Coord0[0], $Coord0[1]) <> 0xFFFF00 ..... WEnd Jos Edited May 28, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MAJORSAM Posted May 28, 2009 Author Share Posted May 28, 2009 Have you bothered opening the helpfile and checking the syntax for the While statement? i don´t know which syntax...it says just syntax error...how to look which one...doesn´t matter....i can´t explain better what i mean...works as it is right now....not so comfortable, but still ok! thx 4 ur help! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 28, 2009 Developers Share Posted May 28, 2009 Have you bothered opening the helpfile and checking the syntax for the While statement?i don´t know which syntax...it says just syntax error...how to look which one...doesn´t matter....i can´t explain better what i mean...works as it is right now....not so comfortable, but still ok!thx 4 ur help!Read my previous post.Your question is answered and the rest is up to you now.*click* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts