Jump to content

PixelGetColor not returning same value as in AWI


 Share

Recommended Posts

I've got Active Window Info (AWI) up and running.

I then execute

mousemove(1536,336)

msgbox(0,"",pixelgetcolor(1536,336))

Shouldn't the value returned by the msgbox, be the same that I see under Dec:xxx in the Pixel Color Under Mouse section of AWI ?

Mine is not....and it seems like it should be.

Thoughts anyone?

Link to comment
Share on other sites

Just make the pixelgetcolor(1536,336) in to a $var and the put that $var into the message box in place of the pixelgetcolor(1536,336). I hope that helps :)

Edited by bert
Link to comment
Share on other sites

  • Moderators

I've got Active Window Info (AWI) up and running.

I then execute

mousemove(1536,336)

msgbox(0,"",pixelgetcolor(1536,336))

Shouldn't the value returned by the msgbox, be the same that I see under Dec:xxx in the Pixel Color Under Mouse section of AWI ?

Mine is not....and it seems like it should be.

Thoughts anyone?

If the Coord Mode is set the same yest. Make sure you are using the same Opt('PixelCoordMode', N) as what AutoInfo.exe is showing

AutoInfo.exe >> Options >> Coord Mode

as far as i know, a message box will only return the ID of the button pressed, or -1 if the message box timed out. :P

:):D :D

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...