mokitooo Posted January 29, 2011 Share Posted January 29, 2011 Hey, what's up. I still creating automovement program, and i'm on a mess. The part of the script that makes me crazy is this one: MouseClick("left",647,592) $14 = PixelGetColor(859,596) if not $14 = 11657443 Then MouseClick("left",512,861) Else _DoCacota16() EndIf Func _DoCacota16() MouseClick("left",647,592) $14 = PixelGetColor(859,596) if not $14 = 11657443 Then MouseClick("left",512,861) Else _DoCacota16() EndIf EndFunc Well, here it seams rly easy, because it just ought to click somewhere, check the pixel, and if the pixel stills there, click again, and so infinite times till the pixel disappears. But, it just clicks on 647,592 , even when the pixel has disappeared. What's happening here, it's like it detects ever the pixel with the color 11657443, but it's not o.o thanks. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 29, 2011 Developers Share Posted January 29, 2011 this test is wrong: if not $14 = 11657443 Then should be : if not ($14 = 11657443) Then or if $14 <> 11657443 Then 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...
mokitooo Posted January 29, 2011 Author Share Posted January 29, 2011 this test is wrong:if not $14 = 11657443 Thenshould be :if not ($14 = 11657443) Thenor if $14 <> 11657443 ThenJosThanks! 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