Sign in to follow this  
Followers 0
Fossil Rock

PixelSearch & PixelCheckSum ... again

7 posts in this topic

This is one for the gurus...

How does pixelsearch and pixelchecksum work... exactly? A detailed description of how these functions perform their task is what I'm looking for... if anyone is willing.

I have a utility that does a pixelsearch and then a pixelchecksum once it finds it. Now, when the window being searched loses focus the pixelsearch either fails to find what it's looking for or finds something in the wrong area and the resulting pixelchecksum will be wrong.

The scans work when the monitor is off, so I'm sure it is reading video memory somehow. I don't know anything about this level of operation and hopefully someone can clarify it for me.

Can pixelsearch and pixelchecksum be accomplished on a window that does not have focus or is minimized?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites



Can pixelsearch and pixelchecksum be accomplished on a window that does not have focus or is minimized?

Perform the following:
  • Minimize your web-browser's window.
  • Tell me what color is at coordinate 100,100 by looking at the window while it is still minimized.
Need I say more?

Share this post


Link to post
Share on other sites

Perform the following:

  • Minimize your web-browser's window.
  • Tell me what color is at coordinate 100,100 by looking at the window while it is still minimized.
Need I say more?
So what you're saying is... if I turn my monitor off, pixelsearch and pixelchecksum won't work either... right?

Here's an analogy... I have blue curtains in my room... if I turn off the light (assuming total darkness) the curtains remain blue. Now if I take the curtains down and drop them behind my dresser (completely out of sight) can the color not be determined?

The point I'm trying to make is the video card is sending the color to the screen regardless of the location. The software for any given program is telling the video card what the screen should look like. If another window is in front of the one you are working with, does the software stop telling the video card what it looks like in the area that is covered? If the video card (or the OS) makes all the decisions as to what is seen and what is not, then is there a way to read the information coming directly from the program that is generating the screen?

My limited knowledge of video cards and it's use of memory is why I'm asking these questions. With the scripts I've written I can, if I really wanted too, tell what the pixel color is at any point while the window is minimized just by knowing what it looks like. Software would definately be able to know what each pixel color is.

Now, my first assumption is ... no, the functions pixelsearch and pixelchecksum can not do this. So if this is true, would it be possible to code something that would be able to do these functions on a window that is not visible?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Any graphic done in Windows goes throgh Windows. Having the monitor off just makes the monitor stop having the abilty to show what is being sent to it. The currect pixel search cannot read something thats not there. It goes like, "hey windows, what are you telling the graphic card tell you to put at x,y". Windows doesn't even know the color of a minimized window untill it's told to make it appear agian, then it checks.

Edited by evilertoaster

Share this post


Link to post
Share on other sites

Any graphic done in Windows goes throgh Windows. Having the monitor off just makes the monitor stop having the abilty to show what is being sent to it. The currect pixel search cannot read something thats not there. It goes like, "hey windows, what are you telling the graphic card tell you to put at x,y". Windows doesn't even know the color of a minimized window untill it's told to make it appear agian, then it checks.

Are you saying that your monitor must be on in order for Pixel functions to work, because it's very confusing the way you wrote that?

[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

Are you saying that your monitor must be on in order for Pixel functions to work, because it's very confusing the way you wrote that?

No---" Having the monitor off just makes the monitor stop having the abilty to show what is being sent to it" that means that the data is still being sent by windows through the graphics card. Windows is oblivius to the fact of wether or not your monitor makes the pixel visable to you or not (it could be off or you could have a sheet over the screen, it doesn't care), but it does't still sends the data.

Share this post


Link to post
Share on other sites

No---" Having the monitor off just makes the monitor stop having the abilty to show what is being sent to it" that means that the data is still being sent by windows through the graphics card. Windows is oblivius to the fact of wether or not your monitor makes the pixel visable to you or not (it could be off or you could have a sheet over the screen, it doesn't care), but it does't still sends the data.

Right, I know this, but then I read it again, and couldn't tell if you were saying it would still work or if it wouldn't, so I thought I'd ask.

[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