WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WinWaitClose( ) with Minimized Windows

Keywords:        WinWaitClose iconized windows minimized windows

Question:

Can you do a WinWaitClose on a minimized window?

Answer:

Yes, but there are a couple of tricks to keep in mind.

Oftentimes the window title changes when a Window is minimized, so the WinWaitClose won't work since the window title is different.

What you need to do is to use the WinIDGet function at some point before the window is minimized, and then use the handle from the WinIDGet in the WinWaitClose parameter.

Other possible reasons why a WinWaitClose doesn't appear to be working:

The window title does not match exactly. Check the spelling and the case, since the function is case sensitive.

Or ...

The window title has not had the time to be created. Put a TimeDelay(3) before WinWaitClose(), to give it time to generate the title.


Article ID:   W13125
Filename:   WinWaitClose( ) with Minimized Windows.txt
File Created: 1999:04:15:16:51:56
Last Updated: 1999:04:15:16:51:56