Sign in to follow this  
Followers 0
crowbait

PixelGetColor not returning same value as in AWI

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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

[center]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.[/center]

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