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) endwhileWith some luck you will be able to figure out how to grab the window handle of the desired script *somehow*.
Article ID: W12512Filename: How to See Invisible DOS Window Contents.txt