hta

User Interface Markup Language pros and cons...

I learnt about some declarative UI languages such as XUL for Mozilla/Gecko and HTA for Microsoft at Wikipedia. What would be the advantages/disadvantages of these markup languages? Why don't common OSes and Applications use these techniques? Do these languages impart flexibility to the system? Are there any OSes that use markup lan...

is it possible to read something.properties using javascript ? (in a .hta file) >> to read in Selenium

I am using Selenium to do testing, We write our test cases in html files and make test suites out of them, our requirement is to write test cases that are robust enough to change themselves as per the test environments. for this, I prefer not to enclose specifications such as urls to open, text to search for on screen, etc in the html s...

HTA installer for MSI failing

I'm using a HTA to try to install a product using WindowsInstaller.Installer as an ActiveXObject. Using the same HTA model that has been used in the past, the attempt to install throws the error: "Msi API Error: InstallProduct,PackagePath,PropertyValues". I have tried this on both Windows Vista and Server 2003 with no success. Both hav...

WinPE 2.0 (Vista) - Looking for a solution for BrowseForFolder using VBSCRIPT & HTA application

Hi, I am creating an HTA application to be run inside of a WinPE 2.0 environment. The purpose of this HTA app is to prompt the user to select a back-up location. I am currently using BrowseForFolder to prompt the user folder location. Script works fine in Vista. However, this does not work in winpe 2.0 - and a dialog appears with n...

Using JavaScript and XML in an HTA?

JavaScript is the web language I am most comfortable with, and I am new to HTA but I think it might be 'the' way to make a fully local dynamic page (updatable with imgs, forms, and the ability to save/load at runtime) using xml as a data source. I just can't find any info on doing so. Also if you could quickly... can I use image maps in ...

How do you extract data from vendor website in vbscript?

I have programmed a post image HTA which is launched after an XP image has been loaded onto a computer. The HTA gathers information from the user (ie primary user name, department, etc) and updates the registry under a custom key. Management has asked if I can pull the computer's warranty information (specifically the warranty end date) ...

Web enabled .EXE

Is it possible for a website to automatically run an external .exe file upon visiting? That is, an .exe file that is not already on the client file system. If so how is this possible? Also, i've read about the use of HTA files or ActiveX components or Java in this process. Is it possible for a java applet to write code to a client's file...

document.open ignores window features in .HTA on Windows 7 when url is local intranet

This code open(sUrl,'','width=791,height=550,left=800,top=0',true); works as expected from a .HTA on XP/IE8. It also works as expected from a .HTM on XP/IE8 as well as Windows 7/IE8 However IF sUrl points to a site listed in IE's Local Intranet Security Zone when used in a .HTA on Windows 7/IE8 it then opens sUrl but it does so in a de...

Security Level for WebBrowser control

I am trying to migrate an .hta application to a C# executable. Of course, since it's an .hta the code is all HTML and Jscript, with calls to local ActiveX objects. I created a C# executable project and am just using the WebBrowser control to display the HTML content. Simply renamed the .hta to an .html and took out the HTA declarations....

Any tricks to stop flickering in between page transitions?

Specifically, I am using a .hta to display pages. As the content is local, pages load instantly, but there is flicker as they redraw. Are there any tricks you can use to stop it flickering or reduce the effect? I heard somewhere that page transition effects can help, but does anyone have any ideas? Keep in mind that as its a .hta file, ...

What are HTML applications?

I recenty stumbled upon some files described as "HTML Applications" on my Win XP machine. What are they? Who would ever use them? Why do I have like 2 or 3 of them on my PC? How do they generally work? I mean hey - HTML is for adding formatting to text - HTML Applications? What the? Microsoft? ...

What are the requirements for HTA files?

They seem to open in an internet explorer type window, does anyone know: How long have HTA files been around? Have they been around since Windows 98? Do they rely on Internet Explorer being installed, and/or a certain version of it? If you choose another browser on the browser selection screen update for Windows 7, will HTA files still...

What IDE should I use to develop hta files that automate Word and Excel?

Which version of Visual Studio Express should I use to develop an HTA application that will script Word and Excel and connect to a web service? Should I download the web edition because hta files are like web pages, or should I download one of the others because hta files work on the local machine? Or is there another IDE I can use? ...

Simple Win GUI - should I try PowerShell or just stick with HTA?

knowing what PowerShell can do on a command line I have never learned how to write GUIs with it. Should I? Or just go back to the good old HTA / VBScript? ...

javascript detect if being run in hta

We'd like to allow our users to download an hta file and run our web app inside it, and have certain pages detect that they are running in an hta file and offer additional features that a web app wouldn't normally have permission to do. How can I simply detect if the page is being browsed from an hta file container? ...

Do i need Administrator priviliges to run an HTA?

Hi, I am trying to install an activex but my user has no admin priviliges. I saw an artical descirbing that HTA can install activeX as if it is an administrator. Do i need to be an administrator to run HTA? if not is this not a security loop hole? Thanks, Arik ...

Deploy an hta file in an exe or msi file

I've written an HTA file frontend for our web app that allows the web app to run without web browser status bars etc, and allows it to access the local system for certain tasks. I need a way to deploy this to customers. I need an installer to supply an hta file, an ico file, and add a link to them in the start menu and on the users desk...

Calling AppActivate on a word 2007 window in Windows 7 gives it focus but doesn't bring it to top of stack

I'm trying to manipulate Word from an HTA file application. Currently, when I open word, it opens underneath my application. I'd like to open it on top. I've tried using the following JScript to give Word the focus: wshShell = new ActiveXObject("WScript.Shell"); wshShell.AppActivate(doc.windows.Item(1).caption); This works, and word g...

Javascript in HTA File

Hello, everytime when i try to add javascript in a hta file with vbscript it comes an error message when i click the submit button: object doesn't support this property or method I try this <script type="text/javascript" src=""></script> and this <script type="text/javascript"> ...code </script> Is there anyone w...

change HTA application window size

hi all is there any way to change the size of an HTA application? thanks ...