Jump to content

Changes to pixelgetcolor?


Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...