Showing 1 - 10 of 60 results for “hta”

Clear filters

Scripting Blog [archived]

How Can I Clear a List Box in an HTA?

Hey, Scripting Guy! How can I clear a list box in an HTA?-- AK Hey, AK. For those of you who aren’t familiar with the term, an HTA - among other things - is a way to use Internet Explorer to provide a graphical user interface for your scripts. (If that still doesn’t answer your questions, don’t despair. Instead, stay tuned for April ...

How Can I Center an HTA on the Screen?

Hey, Scripting Guy! How can I center an HTA on the screen?-- BH Hey, BH. Well, we have an answer for you, although it’s not perfect: we can resize (if need be) and center your window, but there will be a momentary flash on the screen when all this happens. It’s not too terribly distracting and the net effect is what you want: the HTA ...

How Can I Pass Command-Line Variables to an HTA When It Starts?

Hey, Scripting Guy! How can I pass command-line variables to an HTA when it starts?-- DM Hey, DM. Ok, we admit it: you almost had us on this one. (Not that being able to stump the Scripting Guys is particularly hard, mind you.) We had no idea whether you could pass command-line variables to an HTA, and even less idea how we could capture ...

How Can I Encode Scripts Within an HTA?

Hey, Scripting Guy! How can I encode scripts within an HTA?-- LL Hey, LL. You know, when we first read this question we thought, “What’s the big deal? Can’t you encode scripts in an HTML Application (HTA) the same way you encode scripts in an HTML file?” Much to our surprise, it appears as though you can’t encode scripts in an HTA...

How Can I Clear a Text Box in an HTA?

Hey, Scripting Guy! How can I clear a text box in an HTA?-- CB Hey, CB. You know, it’s been awhile since we’ve answered a question about HTAs (HTML Applications). And we could probably get away with that except for the fact that a month or so ago we debuted the HTA Developer’s Center, something which implied that we were going to try ...

How Can I Clear an HTA Window?

Hey, Scripting Guy! How can I clear an HTA window?-- DF Hey, DF. Well, to tell you the truth, if you’d ever seen at least one of the Scripting Houses you wouldn’t be asking us if we knew how to clear a window; it’s pretty obviously some of us don’t. (In our defense, though, if we keep the window clean then birds have a terrible ...

How Can I Highlight a Keyword in an HTA?

Hey, Scripting Guy! I’d like to create an HTA that, upon loading, can open a text file and then display the contents. However, I’d like a particular keyword in those contents to be highlighted. How can I do that?-- GD Hey, GD. You know, a lot of people at Microsoft pooh-pooh the work that the Scripting Guys do. “Take that Hey, ...