mseminatore
09-20-2005, 07:43 PM
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?
kinook
09-21-2005, 10:09 AM
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.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.