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

Control Manager
plus
plus

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

How to tell if a window is a response dialog

Keywords:    modal response dialog modeless

Question:

Is there any way for WinBatch to determine whether a given window is a modal response dialog, as opposed to a modeless "main" window? My goal is to automatically close any response windows that may open while running batch jobs unattended.

Answer:

The Control Manager Extender might help you out here. It can be downloaded from the WIL Add-Ons section of our download page.

Question (thread continued):

I have the Control Manager and have checked but so far been unable to find any way to tell if a window is a modal "response" dialog. Any other ideas? By the way, thanks for quick response time.

Answer:

Hmmm. Is the window "modal". I know of no good way of checking. Perhaps if you hit the parent window with a cEnableState from the Control Manager extender. If the current window is modal, the parent should be disabled...
Article ID:   W12502
Filename:   Figure out if Window is Response Dialog.txt
File Created: 1999:04:15:16:47:40
Last Updated: 1999:04:15:16:47:40