Showing posts with label vbs. Show all posts
Showing posts with label vbs. Show all posts

Thursday, 9 May 2013

Make Your Computer Welcome You!

In this post I will show you all how to make your computer welcome you, whenever you turn on your PC.

Follow the steps below:
1. Open Notepad.
2. Copy the script below:

  dim m, s
  set s=createbbject("sapi.spvoice")
  s.speak "Welcome to your Computer, Yourname"

3. Replace "Yourname" by whatever you want.
4. Save it as anyname.vbs (NOTE: .vbs is a must)
5. Go to My Computer. Enter "Shell:Startup" (without the quotes) in the space where you see Computer written i.e. to the left of the 'search box'
6. Paste the anyname.vbs file there.
7. Restart your computer to see how your PC welcomes you. 

Text to Speech Converter

In this post I will show you how to make a simple Text to Speech converter using Visual Basic Script.

Follow the steps below:
1. Open NOTEPAD
2. Copy the following script

 dim m, s
   m=inputbox("Enter text","Text2Speech")
 set s=createobject("sapi.spvoice")
 s.Speak m

3. Save the file as Text2Speech.vbs or anyname.vbs (NOTE: .vbs is a must)
4. Open the file and type the word that you want to hear.

This is it. You got a text to speech converter in less than two minutes.