socap Posted September 8, 2011 Share Posted September 8, 2011 I want $var= in pixelgetcolor to be not exact color but variety around this shade of grey 0xD4D4D4 because my code is Sleep(50) MouseMove(71, 41, 0) Do Sleep (20) $var = PixelGetColor( 71 , 41 ) Until $var = 0xD4D4D4 Sleep(50) And that color doesn't appear but searched color is very like 0xD4D4D4. Help please. Link to comment Share on other sites More sharing options...
monoscout999 Posted September 8, 2011 Share Posted September 8, 2011 PixelSearch maybe? Link to comment Share on other sites More sharing options...
socap Posted October 2, 2011 Author Share Posted October 2, 2011 Do Sleep (20) $var = PixelGetColor( 71 , 41 ) Until $var = 0xF4F4F4 How to change to opposite, Until pixel is not that color? Link to comment Share on other sites More sharing options...
JohnOne Posted October 2, 2011 Share Posted October 2, 2011 Until Not ($var = 0xF4F4F4) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 2, 2011 Share Posted October 2, 2011 Until $var <> 0xF4F4F4 See Operators in helpfile. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
socap Posted October 3, 2011 Author Share Posted October 3, 2011 Thank you very much. Is there any difference between these two codes? Like in terms of performance or something else? I see that one is math operator and other is a word. Link to comment Share on other sites More sharing options...
socap Posted January 14, 2012 Author Share Posted January 14, 2012 No one knows? Link to comment Share on other sites More sharing options...
JohnOne Posted January 15, 2012 Share Posted January 15, 2012 I'm sure someone does. I doubt there is much difference in performance. But it is very trivial to test this kind of thing yourself, I cannot understand how you are still looking for an answer to this. Look at timerinit and timerdiff, make a loop and test the performance in it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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