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 *See* Invisible DOS Window Contents

Keywords:   control manager  cWndInfo

Question:

We are trying to control EPLAN with WinBatch and have been unsuccessful even recognizing many of its "windows", since it is a dirty DOS port. I assumed that some of the windows, which didn't even have the normal title bar of a window and always lay on top of another window, were not really windows at all, but just graphics from the DOS version.

I'm wondering whether there is some way to at least see them in WinBatch, perhaps with a mess of DLL calls?

Answer:

If the Control Manager "window analysis" script does not get you anywhere, you may be able to use the Control Manager and try:
AddExtender("wwctl34I.dll")
moi=DllHwnd("")
top=cWndInfo(moi,4)
current=top

while current!=0
title=cWndInfo(current,0)
id=cWndInfo(current,1)
class=cWndInfo(current,2)
Message(title,strcat(id," :: ",class))
current=cWndInfo(current,6)
endwhile
With some luck you will be able to figure out how to grab the window handle of the desired script *somehow*.
Article ID:   W12512
Filename:   How to See Invisible DOS Window Contents.txt
File Created: 2001:03:02:14:37:22
Last Updated: 2001:03:02:14:37:22