|
|
Subject:
Invoke JavaScript running in an HTA
Category: Computers > Programming Asked by: n4te-ga List Price: $15.00 |
Posted:
23 Sep 2004 00:26 PDT
Expires: 26 Sep 2004 18:22 PDT Question ID: 405172 |
I need to get a string from Girder into some Javascript that is running inside an HTA (HTML Application). You may not need to know anything about Girder to answer this question. Girder is an automation app mostly aimed at controlling software in response to events generated by a USB IR receiver. Website: http://www.promixis.com/products.php?section=girder Girder allows us to use Lua script. Here is a list of Lua Windows functions we have available: http://www.girderplugins.com/files32/LuaWindowsFunctions.pdf We can use the FindWindow function to get the HWND to the HTA. I do not know if it is possible to trigger an event in the JavaScript running inside the HTA from only the HWND. If we can somehow set the URL of the HTA, we may be able to set it to "javascript:invokeEvent('payload')" to invoke the JS. I had another thought to approach this problem. We have access to COM objects in both Lua and JavaScript. Maybe we can create a simple COM object that invokes a JS event when a string is passed to it from Lua. I know we can write a string to a COM object from Lua and then read that value from the same COM object in JS. However, polling the COM object in JS is not acceptable. I do not have VB, but I would accept a COM object in Microsoft VC++ 6.0. | |
| |
| |
| |
|
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |