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 conditionally checking for ID or sequence number

Keywords: 	 cWndExist

Question:

Any way of conditionally checking for ID or sequence number in a window?

Standard way - must know correct window:

pHwnd=DllHwnd("AutoSave")
statHwnd=cWndbyId(pHwnd,65535);assuming id is 65535
txt=cWndInfo( statHwnd, 0) ;returns title of control
I want: check if window contain certain ID or sequence number;
pHwnd=DllHwnd("AutoSave")
if cWndbyId?(pHwnd,65535) ; check if window has id 65535
statHwnd=cWndbyId(pHwnd,65535) ; got the bum
txt=cWndInfo( statHwnd, 0) ;returns title of control
else
;try next "AutoSave" window that comes along
;this app creates several windows all with same title!

Answer:

I think the current version of the extender have a cWndExist function to check for windows.
Article ID:   W14178
Filename:   Conditionally Checking for ID or Sequence Number.txt
File Created: 2017:07:28:12:58:25
Last Updated: 2001:01:08:11:15:18