Jump to content
Sign in to follow this  

PixelGetColor / MouseCoordMode

Recommended Posts

Hi guys.

I am starting from the beginning and writing very small scripts to get my feet wet. My problem is this:

I am trying to find out of a pixel in a specific window has been switched to white (it's normally grey). The pixel is located at coordinate 653,57 in a specific window (not screen 653,57 - inside the active window)

The window is called "mail check"

To start - all I want is for my script to open the window (which I have minimized) and check a pixel location, then pop up a message box saying the color of that pixel location.

This is my 4 line script.

WinActivate ("mail check");

Opt("MouseCoordMode", 0);

$mail = PixelGetColor(653,57);

MsgBox(0,"Color of the Pizel",$mail);

I "think" it has something to do with the Opt(MouseCoordMode) setting, but I can't pin it down.

To sum up...I open a window, check a pixel location and popup a box with the color (in decimal) of the pixel location checked. It's not checking the pixel within the window that I activated.

Thanks in advance for any help.

I found my answer...PixelCoordMode...not MouseCoordMode...duh


Edited by ktvegas

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...