Make your PC greet you According to Current Time

0 Shares

Hello Readers, I am Siddhant and welcome you to this blog post. In this post, you will learn something very Special. As I have Written the previous post on a very interesting topic that was about to Make your Computer Greet you but that was very first and basic Script to do that. Now its time to do something new, hilarious and awesome. So this script will make your computer greet you with the current time of your PC. Example: Good Morning user, the current time is 8:30 AM. Yes Yes, you heard it Right this script will Detect the Current time and Greet you Accordingly. Like an intelligent Programme. Good morning in morning Before 12′ o Clock and after that Good Afternoon and Good Evening and Midnight.

Note:- Read the previous Post on How to Make your Computer Welcome you, To get the Basic knowledge to do this Step Further. Because we will not focus on the basics and all that in this post. Click here

Requirements to Make your PC greet You According to Current time

  1. Text Editor (Choose which one you Like).
  2. Follow this Post till End.
  3. Copy the given Code.
  4. Paste the copied Code into the NotePad or Text Editor.
  5. Save it.
  6. Its Done now.

1st Step To Make your PC greet you according to Time.

Open any Text Editor that you are comfortable with or you like As I have told you that we are going to Do some simple Copy Paste and Change some text in it. So we simply Use Notpad that is already Availabe in Your PC.

To open the NotePad, You can press the Win Logo Button+R to open the RUN dialogue box and type ‘notepad’ in the search box and hit ENTER.

OR

Click on the Windows Home button and Type NOTEPAD.

2nd Step to make your computer Greet you according to the current Time

Copy the Code given Below and Paste it in the Text Editor. You have to change some words or some of them should Replace according to You.

For example, Lets Suppose your name is Prashant/Priyanka, then You should change text like User with Prashant/Priyanka.

Copy this code And Paste in the Text editor.

Set Sapi = Wscript.CreateObject("SAPI.SpVoice")

dim zira

if hour(time) < 12 then
Sapi.speak "Good Morning User"
else
if hour(time) > 12 then
if hour(time) > 16 then
Sapi.speak "Good evening User"
else
Sapi.speak "Good afternoon User"
end if
end if
end if

Sapi.speak "The current time is "

if hour(time) > 12 then
Sapi.speak hour(time)-12
else
if hour(time) = 0 then
Sapi.speak "12"
else
Sapi.speak hour(time)
end if
end if


if minute(time) < 10 then
Sapi.speak "o"
if minute(time) < 1 then
Sapi.speak "clock"
else
Sapi.speak minute(time)
end if
else
Sapi.speak minute(time)
end if

if hour(time) > 12 then
Sapi.speak "P.M."
else
if hour(time) = 0 then
if minute(time) = 0 then
Sapi.speak "Midnight"
else
Sapi.speak "A.M."
end if
else
if hour(time) = 12 then
if minute(time) = 0 then
Sapi.speak "Noon"
else
Sapi.speak "P.M."
end if
else
Sapi.speak "A.M."
end if
end if
end if

Caution:

Don’t Change anything other than USER. Replace User with your Good Name to call your name by Your Narrator. If you change any other Part of script/Code, then Script may corrupt and may not Work. Do it on your Own risk.

Saving the Code/Script to make your PC greet.

This is the most Important step and here you should be more Careful. Because we are not Going to save this file as (.TXT) or (.PDF) or (.DOCX) and anything like that. You must save this Script with [.VBS] (Check the Previous post for More Details). You may rename it like [welcome.vbs]

Final step to Make your computer Speek.

Now final step is to save the file in the Start Up folder as just as we saved in Previous Post. Its not too long process but the Most important one.

Havn’t you read that post? You should Because you must learn where, how and in which folder you have to save this File otherwise It won’t going to Work for you.

Just check tha post and copy the steps to Make your Final step successful. You are now just one click Away to make your computer Talk/speek/Greet you whenever you boot your PC or simply by Double clicking on it.

Ease for You as a Bonus.

May be you are reading it on Your smartphone or for any reasons, You are unable to copy Paste the Script above. So here I have done half of your work. Click here to Download the welcome.vbs file. Now what you have to do is just simply save(Drag and Drop) the downloaded file into the directory mentioned in that post.

What you want in the next Post from my end? Feel free to Suggest me any Tricks, Tips or anything related to technology. Comment below the Topic you want to be covered in this Blog will deffinitely Cover that topic.

For Now share this post with your Friends and Family if you think you have Learnt anything from this post. THANKS FOR READING.

0 Shares

About Siddhant

I am a Professional full-time blogger, Freelance Article writer, Web Designer, and a Graphic Designer. Here we share all the Tech Support related Posts.

View all posts by Siddhant →

6 Comments on “Make your PC greet you According to Current Time”

  1. Thanks a lot for this post.
    Actually I have watched many videos on YouTube on this topic (howhto make my PC greet me)but they wern’t provided any text code of script and I am not a code. So This post helped me a lot

  2. Really it’s a very very good explaination about narrator
    I have saw many video related to it but non of them are like this

    Thankyou so much sir jeee thanks a lot

Leave a Reply

Your email address will not be published. Required fields are marked *