Important Message From Waqas Ramzan The Creater Of This Blog!

Alert! Important Announcement from Waqas Ramzan The Creator of this blog!

Assalamu Alaikum Visitor! It is to be announced, that this blog has been discontinued as of June 2015. It was really a great time of around 8 months. I have gain many new experiences. I am now working as a Senior Web Master at Blind Help Project, that works under the slogan of "Envisioning a Brighter Tomorrow Through the Lens of Technology". It aims to empower the blind and visually impaired community in the field of assistive technology. I divert you towards BlindHelp.Net if you enjoyed this blog. Thanks!

Sunday 21 December 2014

Give Your Computer The Sense To Greet You Whenever You Turn It On

Assalam o Alikum Friends!
Another Awesome NEWS for you!

I found a trick. With the help of this trick you can give your computer the sense to greet you whenever you turn it on. It means every time you will turn on your computer, it will say Good Morning, Good After Noon, or Good Evening along with your name.


Lets get started!
1, Click Start > All Programs.
2, Right click on "Startup" and choose "Open".
-> Startup folder will open.
3, Right Click in the folder, Click "New" and choose "Text Document".
-> A new blank text document will be created.
4, Type "Greeting" and press Enter.
5, Press Enter one more time to open this file.
6, Paste the following code in this file.

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

dim str

user="username"
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

7, In the fifth line change "username to your name. Don't remove the quotation marks ("").
For Example if your name is Ahmed then the fifth line will be:

user="Ahmed"

8, Click "File" in the menu bar and choose "Save As".
9, Type "Greeting.vbs" and press Enter.
10, Close Notepad.
11, Now you will see two files. Delete the text document.
12, Close the folder and you have done!

NOTE: Your system time must be set correctly.

ENJOY!

If you have any problem, then please contact me from the Contacts page.

No comments:

Post a Comment