3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Make a vbs script to read the time

Make a vbs script to read the time
Hi, friendly neighborhood Super_Nerd here. As my first instructable I will show how to make a simple vbs script that reads the time and date with the narrorator. You will need:

-a computer running Windows 95 or higher (won't work on Macs sorry macs :( )
-notepad
-ability to copy and paste
-a brain (sorry jellyfish)

 
Remove these adsRemove these ads by Signing Up
 

Step 1A Pad of Notes

A Pad of Notes

First open notepad

Windows 95-2000
Start>Programs>Acessories>Notepad

Windows XP-7

Start>All Programs>Acessories>Notepad

Once you have notepad open go onto the next step.

« Previous StepDownload PDFView All StepsNext Step »
6 comments
Nov 7, 2011. 4:46 PMbeaver84 says:
This is a really cool script! Thanks for posting it!
Jun 8, 2011. 11:49 AMimBobertRobert says:
how did you get to the speech properties?
Jun 8, 2011. 5:56 PMimBobertRobert says:
thanks!
Feb 2, 2011. 6:59 AMtheformatter says:
Nice script.

The only change I made was instead of saying every string as it was determined, I built a bigger string as the script executed, then at the very end issue one command to say that string. For example, instead of

Sapi.Speak hour(time)-12

I used

strSapi = strSapi & " " & hour(time)-12

and the last line of the script was:

Sapi.Speak strSapi

Made for a smoother output plus it works faster because you only need to make the speech api call once.

Also, my 'puter kept changing A.M. to "A meters", go figure, who'd a thunk the auto abbreviation expansion would go metric for my locale. I just changed that part of the string to be "A. M", adding a space before the M and removing the last period.

Nice to have this little script in my toolbox, I'm sure it will be useful down the road.


Jim


/* If you think the problem is bad now, wait until I fix it! */


Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
6
Followers
13
Author:Super_Nerd
I find a quote from Bill Gates makes a very good description. "Be nice to nerds. Chances are you'll end up working for one." [UPDATE] Wow! Ha...
more »