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 Deal with Changing Window Specification


Question:

I have a problem with a Control Manager function:
window1=cWndByWndSpec("Afx:400000:b:10011:6:1d504df","Inspector",1,59648)
window2=cWndByID(window1,59648)
ControlHandle=cWndByID(window2,1009)
I got that code via Roboscript. The problem is that the window name changes each time I load "Inspector" so I cannot hard code it. I get an error saying the window does not exist. The "Afx" part of it changes. Any ideas on how I can fix this?

Answer:

Use DllHwnd(...) instead of cWndByWndSpec(...)

Use A partial window name type parameter instead of cWndByWndSpec's gobs of parameters.


Article ID:   W15831
File Created: 2004:03:30:15:41:02
Last Updated: 2004:03:30:15:41:02