Make your Computer Greet you when you use it

 by Super_Nerd
Win_95_Logo.png
I noticed one day how rude my computer was to me. When I turned it on all it did was show the boot screen and then made me log in. When I logged in, expecting a welcome I just heard a logon sound. Well it isn't that impolite since the computer never knew I wanted it to do that but I still I would like it to have some manners. 

You will need.

A Windows 98 (or higher) Computer
Notepad (The program not the real thing)
5 minutes (unless your computer runs at a snail's pace)
 
Remove these adsRemove these ads by Signing Up
Weetile says: Jan 6, 2013. 10:05 AM
It is the same for Windows XP too!
All Programs > Startup
Add XP too!
Sch3cter says: Feb 15, 2012. 12:35 AM
Hi,

I was wondering if I could have some help with this? Everytime I try I get this error:

Script:
C:\Users\Sch3cter\AppData\Roaming\Microsoft\Windows\Start\Menu\Programs\Startup\Welcome.vbs
Line: 1
Char: 18
Error: Expected ')'
Code: 800A03EE
Source: Microsoft VBScript Compliation error

This is the script I'm using ( exactly as it appears in Notepad)

msgbox("Hi,0+64,"Computer")

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

dim str

if hour(time) < 12 then
Sapi.speak "Good Morning Schecter"
else
if hour(time) > 12 then
if hour(time) > 16 then
Sapi.speak "Good evening Schecter"
else
Sapi.speak "Good afternoon Schecter"
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


*** I'm probably just doing something really easy and stupid but I can't see anything.

Thanks,
Schecter
Super_Nerd (author) in reply to Sch3cterFeb 15, 2012. 5:38 PM
You forgot to put another quotation mark around Hi.

Sch3cter in reply to Super_NerdFeb 16, 2012. 1:34 AM
Hi,

Thanks, I doesn't work at all if I keep that first part "msgbox....." in even if it is typed properly. If I remove it completely it works but the voice is very choppy and stuttery.

Thanks,
Robbie
Super_Nerd (author) in reply to Sch3cterFeb 16, 2012. 6:27 PM
Sorry but the voice will still be choppy. (I ran into a text string limit) However the message box part now works. Here is the script.

a=msgbox ("Hi",0+64,"Computer")

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

dim str

if hour(time) < 12 then
Sapi.speak "Good Morning Schecter"
else
if hour(time) > 12 then
if hour(time) > 16 then
Sapi.speak "Good evening Schecter"
else
Sapi.speak "Good afternoon Schecter"
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
Super_Nerd (author) in reply to Sch3cterFeb 16, 2012. 6:14 PM
Well the voice being choppy I can rewrite the script to have a text string so it says it all in a sentence at the end. The message box, well, I'll just rewrite the script for you. I will post it soon.
BigMikeDog says: Jan 6, 2012. 12:05 PM
can i change the voice of the person because at 5 in the morning it kind of freaks me out
Super_Nerd (author) in reply to BigMikeDogJan 6, 2012. 12:36 PM
If you have windows vista or 7 your stuck with Anna but if you have XP you can download 2 voices off of the microsoft website. Search for microsoft mike and mary.
BigMikeDog in reply to Super_NerdJan 9, 2012. 9:01 AM
darn i have 7. Will 7 not let you download more voices or is it that it doesn't like the code in the voice file?
Super_Nerd (author) in reply to BigMikeDogJan 9, 2012. 12:36 PM
I think they did that to 7 because there could be viruses in it. Not completely Sure.
lembry says: Sep 20, 2011. 8:44 PM
That is awesome thanks!!!! I'm been trying to figure that out forever hahaha
Super_Nerd (author) in reply to lembrySep 21, 2011. 1:45 PM
I'm glad I helped
EdurusFas says: Jun 19, 2011. 11:59 PM
Thanks! I tried this and it works :)
alpe_97 says: May 30, 2011. 12:54 PM
So what if you decide that you don't want that anymore. Would you go into startup folder and just delete it?
Super_Nerd (author) in reply to alpe_97May 31, 2011. 5:16 AM
Precisely
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!