Thread: Name or Title
View Single Post
  #2 (permalink)  
Old July 8th, 2003, 03:33 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

An excellent question that, to me, demonstrates the uselessness of the AppActivate function. To dynamically find the window title or PID you surely need a WinAPI function like EnumWindows, but you can't get to WinAPI from VBS. So if you really have to do this from VBS, you need to write a COM object in a language that can use WinAPI - but then, you suddenly have the whole of WinAPI available so why would you want to limit yourself to the VBS AppActivate function? Hence - a useless function in my book.

Sorry for not much help Charlie.
Reply With Quote