Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Window handle from VBScript (https://www.kinook.com/Forum/showthread.php?t=1283)

mseminatore 09-20-2005 07:43 PM

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?

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.


All times are GMT -5. The time now is 03:58 PM.


Copyright © 1999-2023 Kinook Software, Inc.