Showing 21 - 30 of 60 results for “hta”

Clear filters

Scripting Blog [archived]

How Can I Run a Subroutine in an HTA After a Set Amount of Time?

Hey, Scripting Guy! I have an HTA that asks users to either click a button to install some software or click Cancel. Sometimes, though, users don’t do either one; they just let the HTA sit there. Is there any way to show the HTA for a set amount of time and then, if nothing happens, have it go ahead and install the software?-- TN Hey, TN...

Hey, Scripting Guy! How Can I Get an HTA to Remember Its Previous Position Onscreen?

Hey, Scripting Guy! Is there any way to get an HTA to remember its previous position onscreen? Some of my users are very particular about moving an HTA to a specific spot on the screen, then wanting it to reappear at that same spot the next time they run the application.-- DF Hey, DF. You know, in the past few weeks there has been a spate ...

How Can I Include Multiple Subroutines in a Single onClick Parameter in a HTA?

Hey, Scripting Guy! In your HTA examples, you show us how you can click a button and cause a single subroutine to run. How can I add two or more subroutines to the onClick parameter for a button?-- FM Hey, FM. You know, there’s an interesting branch of cognitive psychology known as problem finding; the idea is that your ability to answer ...

Hey, Scripting Guy! How Can I Create an HTA For Displaying Log Files?

Hey, Scripting Guy! I have a bunch of log files (all in the same folder) that I periodically need to review. What I thought would be really cool would be to have an HTA that, when it starts up, retrieves all the log file names and displays those names in a list box; I could then click any file name and the HTA would read the file and display...

Hey, Scripting Guy! How Can I Automatically Move the Focus as Users Type in an HTA?

I have an HTA that we use for creating and modifying user accounts. In that HTA we have a couple of phone number fields; each of these fields consists of three text boxes (one for the area code and two for the phone number). I’d like to set this up so that, as soon as someone has typed three digits into the area code box the cursor ...

How Can I Start an Application From an HTA?

Hey, Scripting Guy! Is there an alternative to the Wscript.Shell command for HTAs? I need to run an application and specify the file to open.-- DL Hey, DL. Yes, we do know of an alternative to the Wscript.Shell command that will work in HTAs, and we’ll show you that in a minute. Before we do that, however, we should note that you actually...