Jump to content

PixelCoordMode (Option)


Recommended Posts


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.

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

  • Recently Browsing   0 members

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