loading
1 Comments

Tell us about yourself!

Complete Your Profile
  • Make your Computer Greet you when you use it

    I managed to get this to work for any user without the jerkiness. It still has to go in the user's startup folder, but it does not need to be modified to insert their name. Now if I can just figure out how to have it load for all users without having to have multiple copies. File will need to be put in each user's startup folder:C:\Users\{Put_UserName_Here}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartupHere is the code:==============Set Sapi = Wscript.CreateObject("SAPI.SpVoice")Set wshShell = CreateObject( "WScript.Shell" )'Get User's Log-in NameGreetName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" )dim strDim Greeting, Time_H, Time_M1, Time_M2, Time_AP'Determine Time of Day for appropriate greetingif hour(time) < 12 then Gree...see more »I managed to get this to work for any user without the jerkiness. It still has to go in the user's startup folder, but it does not need to be modified to insert their name. Now if I can just figure out how to have it load for all users without having to have multiple copies. File will need to be put in each user's startup folder:C:\Users\{Put_UserName_Here}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartupHere is the code:==============Set Sapi = Wscript.CreateObject("SAPI.SpVoice")Set wshShell = CreateObject( "WScript.Shell" )'Get User's Log-in NameGreetName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" )dim strDim Greeting, Time_H, Time_M1, Time_M2, Time_AP'Determine Time of Day for appropriate greetingif hour(time) < 12 then Greeting = "Good Morning. "elseif hour(time) > 12 thenif hour(time) > 16 then Greeting = "Good Evening "else Greeting = "Good Afternoon "end ifend ifend ifSapi.speak Greeting & GreetName'Set Hour - for some reason it did not like using an un-fixed variable for the hourTime_H = Fix(Hour(time))'Set Minute variablesif minute(time) < 10 thenTime_M1 = "o"if minute(time) < 1 thenTime_M1 = "oclock"elseTime_M2 = minute(time)end ifelseTime_M1 = minute(time)Time_M2 = " "end if'Set AM/PMif Time_H > 12 then Time_AP = "P" else if Time_H = 0 then if minute(time) = 0 then Time_AP = "Midnight" else Time_AP = "AE" end if else if Time_H = 12 then if minute(time) = 0 then Time_AP = "Noon" else Time_AP = "P" end if else Time_AP = "AE" end if end ifend if'Adjust to 12-hour clockif Time_H > 12 thenTime_H = Time_H-12end ifSapi.speak "The current time is " & Time_H & " " & Time_M1 & " " & Time_M2 & " " & Time_AP & " " & "M"Here is the code:

    View Instructable »