Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Save Information in an HTA as a Tab-Separated Values File?

(image) Hey, Scripting Guy! I have an HTA that includes five text boxes. How can I save the values in those text boxes to a tab-separated values file?-- EL(image) (image) (image) Hey, EL. According to their itinerary, the Scripting Guys should land in Paris sometime around 8:00 AM on Friday, November 9th. OK, technically, Paris isn’t ...

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

(image) 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 Allow Users to Type Text Into an HTA Table?

(image) Hey, Scripting Guy! I’m using an HTA as a data entry online form. The easiest way for me to format the HTA is to use a table; however, I can’t figure out how to let people type text into some of the cells in that table. How can I do that?-- EN(image) (image) (image) Hey, EN. You know, Saturday night the Scripting Guy who writes...

How Can I Dynamically Show Available Drive Letters in a List Box?

(image) Hey, Scripting Guy! I’m using an HTA as a drive-mapping application. I’d like to be clever about this and have the available drive letters appear in a list box. How can I dynamically show all the drive letters available on a computer?-- JT(image) (image) (image) Hey, JT. You know, just the other day the Scripting Guy who writes...

How Can I Dynamically Link Two Drop-Down Lists?

(image) Hey, Scripting Guy! How can I configure a pair of dropdown lists in an HTA so that, when I change the selection in the first list, the options available in the second list also change?-- PC (image) (image) (image) Hey, PC. Before we get going today, we’d like to make it clear that the Scripting Guy who writes this column isn’t ...