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.
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