Sign in to follow this  
Followers 0
PoRt

PixelCoordMode (Option)

1 post in this topic

Hello,

I am having troubles with the following, been at the whole project for hours.

Global $CGH, $PixColor ;$Name is defined, just removed for forum support.
Opt("PixelCoordMode", 0) ; Tried 0 (tested as $CGH = winGetHandle($Name)), 1 (didn't test because it's not what I want) and 2 (current $CGH)
$CGH = ControlGetHandle($Name, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]") ; When using a msgBox(0, "", $CGH) It returns the value AutoIt Info Tool has, WORKS!
$PixColor = PixelGetColor(85, 75, $CGH) ; Gets the pixel at this location on the screen not the window (coordMode 0) or client area (coordMode 3)

This pixel stuff is one of my final steps in this, but it will not seem to return correctly.

Any ideas? Thank you.

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