Scripting Blog [archived]

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

How Can I Specify a Window Size for My HTA?

(image) Hey, Scripting Guy! How can I specify a particular window size for my HTA?-- RN(image) (image) (image) Hey, RN. We can’t speak for Dear Abby, Ann Landers or any other daily columnist, but the Scripting Guys are always on the lookout for a question that can be answered using a single line of code. That’s the Holy Grail for daily...

How Can I Remove an Item from a List Box in an HTA?

(image) Hey, Scripting Guy! In an HTA, how can I remove an item from a list box?-- LW(image) (image) (image) Hey, LW. You know, we Scripting Guys are forward-thinking guys and, as such, we never look back. Did we put an item in a list box? If so, there must have been a darn good reason for that and we’d never even consider removing it. ...

How Can I Dynamically Populate a List Box in an HTA?

(image) Hey, Scripting Guy! In my HTA, I would like to query a computer for a list of local user accounts, then dynamically create a list box containing those accounts. How can I do that?-- BN(image) (image) (image) Hey, BN. You know, if you’d ever seen the Scripting Guys in … action … you’d think twice about asking us a question ...

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

(image) 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(image) (image) (image) Hey, FM. You know, there’s an interesting branch of cognitive psychology known as problem finding; the idea...

How Can I Get the Actual Text of a List Box or Dropdown List Option?

(image) Hey, Scripting Guy! In my HTA, how can I get the actual text of a list box or dropdown list option?-- MM(image) (image) (image) Hey, MM. You might be familiar with an old Mac Davis song, a song that starts off like this:Oh Lord it's hard to be humble When you're perfect in every way Now, admittedly, the Scripting Guys aren’t ...