View Single Post
  #2  
Old 09-21-2005, 10:09 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Some APIs will accept a NULL (0) window handle, you might try that first. I'm not sure of a way to get a window handle from script code, and if the build is run via the console app or the object model, VBP itself won't have any windows.

If you know you'll always be running from the GUI app, you should be able to write a simple COM object in C++, C#, or VB that finds the top VBP window via the FindWindow or EnumWindows APIs, and create/call that object from your script code.
Reply With Quote