Jump to content
Sign in to follow this  
socap

$var= in pixelgetcolor variety of colors

Recommended Posts

socap

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.

Share this post


Link to post
Share on other sites
socap

Do

Sleep (20)

$var = PixelGetColor( 71 , 41 )

Until $var = 0xF4F4F4

How to change to opposite, Until pixel is not that color?

Share this post


Link to post
Share on other sites
socap

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.

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.