Jump to content
Sign in to follow this  
RichardL

Is window blank?

Recommended Posts

RichardL

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.

Share this post


Link to post
Share on other sites
EKY32

I want to know if the area is blank

You mean you want to know if the selected area has no controls inside?


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
FireFox

@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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
RichardL

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.

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  

×