Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current window title 2

Status
Not open for further replies.

JeanPhilippe

Programmer
Oct 30, 2000
4
BE
Is there a way to get the current window title?
I wish to do someting like
WaitForWindow('title')

Thanks

Jean-Philippe

 
Try to use FindWindow
In C++ is but u find it in API form VisualBasic

HWND FindWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName );

U have to use
response = FindWindow(&0,windowname)
________

George
 
George

Thanks for your help. But I've forgot to tell that i'm a newbe to vbscripting. So could you explain how to call API from VBScript?
It's seem that it's not so easy.

Thank you.

Jean-Philippe
 
It's not possible from w98/me/95 but in NT/2000 it's possible from WMI interface... ________

George
 
Well, I think I'll limit my self to VBS for the present.
But I've found a web site full of jewels about VBScript; it's url is
It's really the "treasure island" (I don't know if this expression exists in english).
You'll find a full of ocx to work with API, to make full input form, to make a grid(!) and so on.

Have a look on it, you won't regret.

Once again, thanks for your help.

Jean-Philippe
 
Thanks JeanPhilippe, this was verry useful to me to... ________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top