Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69033

How to control an HTA application?

$
0
0

Hi.

 

I have some days working on an HTA application. I want to control it throught LabVIEW.

 

There are possible solutions:

 

1) This one worked but Im not satisfied: The approach I used is to modify a bit the code, javascript and HTML. Then open it and controlling the button events with my LabVIEW VI. I used this approach in the past with other applications with success.

But for some reason functions from User32.dll does not work for this application, for example if I list the opened windows, the hta application is not visible.

So i did some tricks to make the window active, added "ALT + letter" shortcuts to each button i need to use, so I can control it on that way. If the hta is updated, i need to do some changes to the code.

 

2) Calling external Javascript (http://lavag.org/files/file/59-calling-external-javascript/)
My tests here didnt worked. I need to delete all HTML code from the HTA and do some replacements to read the script file. But when i call fucntions i had errors that I cant fix.

 

3) ActiveX web browser (http://forums.ni.com/t5/LabVIEW/Error-when-trying-to-call-Javascript-function-in-ActiveX-Web/m-p/1803828#M621665)

There are errors when loading the hta (renamed as htm to open it here). I tried to load the original hta as htm, and also the modified hta file, but got same errors.

 

 

Question is:

¿Can someone recommend another way to do this?
Also if someone knows how to make work user32.dll functions with this application, would be realy useful.

 


Viewing all articles
Browse latest Browse all 69033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>