Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Add a Hotkey to an HTA Button?

(image) Hey, Scripting Guy! How can I add a hotkey to a button in my HTA?-- TM(image) (image) (image) Hey, TM. As usual, the Monday column is being written on Friday; however, the Scripting Guy who writes this column is having far more trouble getting things done than he usually does. That’s because today is day 2 of the NCAA basketball ...

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

(image) 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 (image) (image) (image) Hey, DF. You know, in the past ...

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

(image) 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, Scripting Guy! How Can I Select Text in a HTA and Then Append That Text to a File?

(image) Hey, Scripting Guy! I read your column about the HTA that could load and then display all the files in a folder. That was pretty useful, but I had an idea to make it even better. When looking at a log file I often see portions of the log that I’d like to copy and save to a separate text file. Is there any way to highlight text ...

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

(image) 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...