以编程方式控制HTA html应用程序 [英] Programmatically controlling HTA html application
问题描述
大家好,很抱歉,如果这不是此论坛的错误...,
我有一个HTA(html应用程序),它调用了一些ActiveX控件.当此程序在IE中以HTML格式运行时,您会在所有位置看到ActiveX提示,并且无法正确执行.
当它沿HTA立式运行时,它的平滑性...无提示,因为它具有完全控制您的安全性.
我希望能够通过C#Windows Form应用程序对其进行控制.
我们的直觉是去使用Webbrowser对象并解析DOM并调用javascript. .但是由于该应用程序无法在IE中正常运行,因此我只能假定它不会在.NET Webbrowser控件中正常运行(因为它基于IE). winforms,同时仍使用DOM的所有功能.
感谢
Hey all,
Sorry if this is the wrong forum for this...
I have an HTA (html application) that calls some ActiveX controls. When this program is running in IE as HTML, you get ActiveX prompts all over the place, and does not execute properly.
When it runs as a stand along HTA, its smooth...no prompting because it has full control of your security.
I want to be able to control this via a C# Windows Form app.
Gut feeling is to go w/ the Webbrowser object and parse the DOM and Invoke javascript. But since the application does not execute properly within IE, I can only assume it will not execute properly within the .NET Webbrowser control (since it is based off IE).
So, HOW can I control this HTA from winforms while still using all of the functionality of the DOM.
Thanks
推荐答案
你好NickoM,
http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3718271&SiteID=1 .
这篇关于以编程方式控制HTA html应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!