|
#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|