Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-20-2005, 07:43 PM
mseminatore mseminatore is online now
Registered User
 
Join Date: 09-14-2005
Posts: 17
Window handle from VBScript

I am creating a user .action via VBScript. The script is creating a COM object that needs an hwnd. Is there a way to get this?
Reply With Quote
  #2  
Old 09-21-2005, 10:09 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
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
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:57 AM.


Copyright © 1999-2023 Kinook Software, Inc.