Monday 6 October 2014

make the computer welcome you at startup

How to make the computer welcome you?

Yes, we can make every computer to welcome you in its robotic voice. The trick that I will teach you in this tutorial is very interesting and simple. You too may have seen in many Hollywood or Bollywood movies that the computer welcomes the owner
by his/her name or something else.



We all are amazed that how this happen? We think that those are special computers that welcome their owner by their name, or special software is used for this purpose. Actually, there is nothing like that.
I think you all are willing to make the computer welcomes you with your name or something you want. The fact is nothing but the concept of programming only.

As we want the computer to welcome us at start –up, so we have to do some changes in the start –up directory in our primary drive (usually C drive).

Without creating much confusion, I will teach you step by step.

Step 1: Open notepad (all programs->accessories->notepad).

Step 2: Paste the below code exactly as it is in your notepad
Dim speaks, speech                                
speaks="Welcome to your PC,
 Username"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks                               


Step 3: Replace the Username with your own name.
              Or you can edit the code in brackets with anything that you want the computer to speak.

Step 4: Now save the file (select all types in the save file as option).
 Name the file as Technologyfever.vbs { .vbs is necessary}

Step 5: Copy the saved file.

Step 6: Navigate and Paste the copied file in the below directory-
-For Windows Vista, windows 7,windows 8 users-
 C:\Users\ {User-Name}\Appdata\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
For windows XP users-
 C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Note-If directories like appdata or any other directory is hidden, then first select the show hidden folders in folder option.

Step 7: Paste the file.

Now it’s the time to see the magic. Just restart the computer. You will see that your PC will welcome you in its robotic voice.

So here you learnt that the things that amaze us are always simple. Next time when you restart your computer in front of anybody, he/she will really be amazed how you did this.

About the above programming code -For tech loving persons: You may want to know what this .vbs extension is? 
OK, I understand you all. So I will explain you a little bit about this here.

Here I used the extension .vbs

So what does .vbs stands for?
       The vbs means Visual Basic scripting. It’s a programming language developed by Microsoft since windows 98.  (Same as we use classname.java extension in a java program). It is usually implemented in host environment.

Keywords used in this program:-
Dim(dimensions) : Used to define dimensions of the array speaks.
Speaks is the array which contain the text that is to be converted into voice.
Spvoice: Defines the type of events that would be received for Text-to-speech recognition.


Here it finished. I hope i made you everything clear about this small and simple trick.
For more such tricks, stay connected via facebook, mail, google+.
If you are facing any problem to make the computer welcome you, just comment below or mail me. I will help you.

Feel free to comment below in the comment box. Each comment will be appreciated. Thank you.



No comments:

Post a Comment