Jump to content

Is window blank?


 Share

Recommended Posts

I'm driving an application with AutoIt, I know the coordinates of the window control. I want to know if the area is blank, and no dialogues in front of it. Maybe there's a way with PixelSearch, but I want to know if there is any pixel that is not white. I could checksum the area, and compare with a reference, but the reference number would change with control size.

Thanks.

Link to comment
Share on other sites

@RichardL

Why not setting the window as topmost or checking its active state?

If not, then you can loop through visible windows and getting their coords in order to know if one of them is over the window.

But I have not understood the blank part...

Br, FireFox.

Link to comment
Share on other sites

It's a specialised drawing package and it might have been left with some drawings open, i.e. the main window is not all white, and as well as that it might have dialogues open. Yes, JohnOne I could scan all the pixels as you say, but as the mechanism is the same as PixelSearch, but with opposite criteria I was hoping there was a way to do it by simply selecting the right options.

Thanks all.

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
 Share

  • Recently Browsing   0 members

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