Scripting Blog [archived]

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

How Can I Limit the Number of Characters That Can Be Typed Into a Textarea?

(image) Hey, Scripting Guy! We have an HTA used for data entry. Included in that HTA is a text area where people can enter a maximum of 256 characters. I need to do two things: 1) limit the number of characters people can enter in the field to 256 (I can’t for the life of me figure out how to do that); and, 2) as people type, show them the...

Hey, Scripting Guy! How Can I Tell If a Computer Has a SmartCard Reader Attached?

(image) Hey, Scripting Guy! How can I tell if a computer has a SmartCard reader attached?-- TE(image) (image) (image) Hey, TE. Um, we hate to be rude, TE, but we’re closed today; we only answer questions Monday through Friday. We’d be happy to help you out, but you’re going to have to come back on – what’s that? It is Monday? Wow...

Hey, Scripting Guy! How Can I Set the Date and Time on a Computer?

(image) Hey, Scripting Guy! How can I set the date and time on a computer?-- KM(image) (image) (image) Hey, KM. Well, it’s true: today is the last day of TechEd IT Forum. That also means that, for the Scripting Guys, the party is over: tomorrow morning they hop on a plane and head back for home. And, needless to say, back to the real ...

Hey, Scripting Guy! How Can I Create a Self-Updating Text Box in an HTA?

(image) Hey, Scripting Guy! I have an HTA with three text boxes. In box 1 you enter a first name; in box 2 you enter a last name. I’d like box 3 to automatically update itself based on what you type in the other text boxes. For example, if you type Ken in box 1 then box 3 shows Ken. If you then type Myer in box 2 box 3 shows Ken Myer. How ...

Hey, Scripting Guy! How Can I Run a Script Any Time Office Outlook is Started?

(image) Hey, Scripting Guy! How can I run a script any time Outlook is started?-- AT(image) (image) (image) Hey, AT. Today is Wednesday, and Wednesday is a busy day here at TechEd IT Forum. For one thing, this afternoon the Scripting Guys will be making a guest appearance at the TechNet Magazine booth. What will they be doing there? Well, ...