Sign in to follow this  
Followers 0
Justchris25

Changes to pixelgetcolor?

3 posts in this topic

Hi, I dont know whats up with pixelgetcolor. Did they change it recently? I used to be able to use the windows info tool to get the color but now its not working.

Example:

$var = Pixelgetcolor (50, 50)

if $var = "0xFF0305" then

mousemove (50, 50)

endif

This does not work anymore? Can someone explain how I get the colors if I cant get them with the info tool. Do I HAVE to use decimals now instead? And if i have to use decimals or hex can someone explain where I can get those without running another script? Seems like thats a step backwards ;)

Thanks in advance.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi, I dont know whats up with pixelgetcolor. Did they change it recently? I used to be able to use the windows info tool to get the color but now its not working.

Example:

$var = Pixelgetcolor (50, 50)

if $var = "0xFF0305" then

mousemove (50, 50)

endif

This does not work anymore? Can someone explain how I get the colors if I cant get them with the info tool. Do I HAVE to use decimals now instead? And if i have to use decimals or hex can someone explain where I can get those without running another script? Seems like thats a step backwards ;)

Thanks in advance.

Don't think it ever worked with quotes.
$var = Pixelgetcolor (50, 50)
if ($var == 0xFF0305) then
     mousemove (50, 50)
endif
Edited by SmOke_N

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.

Share this post


Link to post
Share on other sites

Hmm.. I'm not sure what I was doing wrong but I got it.

And I am using quotes. Maybe a typo on my part, weird :D

Thanks for the help anyway ;)

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  
Followers 0