How to program my computer to talk certain text on start up?


  1. Posts : 51
    Windows 7 Home Premium x64
       #1

    How to program my computer to talk certain text on start up?


    I want my computer to greet me "Good Morning USER" , "Good Afternoon USER" or "Good Evening USER" on start up and tell me the current Time and Date, i know this is kinda funny but i wonder if there is such an option? I would highly appreciate any input. Thanks!
    Last edited by shinyjanjan; 18 Nov 2012 at 11:04.
      My Computer


  2. Posts : 14,606
    Microsoft Windows 7 Home Premium 64-bit 7600
       #2

    it is possible, mine says "oh no not you again,please log off now"
    see how here...
    Make Windows 7 Welcome you With an Audio Voice Message During Logon

    i think this page is the one i used originally.

    http://mintywhite.com/software-revie...ogin-quicktip/

    actually, re reading your original post, i dont think you can get it to speak the time, or be able to specify whether it is morning, noon or night.


    perhaps a third party clock that has speech may do that for start up

    edit,heres one, it will use microsoft anna so if you can get it to run with the other message then it will all sound like one message.
    http://www.cinnamonsoftware.com/desktop_clock.htm

    as for the greeting of the time of day, i would just have it say hello and your name.
    As the clock will say the time then you dont really need the message to say morning or evening
    Last edited by boohbah; 18 Nov 2012 at 11:32.
      My Computer


  3. Posts : 51
    Windows 7 Home Premium x64
    Thread Starter
       #3

    boohbah said:
    it is possible, mine says "oh no not you again,please log off now"
    see how here...
    Make Windows 7 Welcome you With an Audio Voice Message During Logon
    Thanks but i want the way exactly as i said on my initial post. It will greet me "Good morning" if the time is 12:00AM until 11:59AM, same in afternoon and evening. Could that be possible?
    Last edited by shinyjanjan; 18 Nov 2012 at 17:09.
      My Computer


  4. Posts : 14,606
    Microsoft Windows 7 Home Premium 64-bit 7600
       #4

    not that i'm aware of, if you find a solution let us know.
      My Computer


  5. Posts : 51
    Windows 7 Home Premium x64
    Thread Starter
       #5

    Code:
    Dim msg, greeter
    Dim masterName
    Dim currentHour
    
    masterName = "John"
    currentHour = Hour(Now())
    currentWeekday = Weekday(Now())
    
    If currentHour = 0 And currentHour < 12 Then
    
    msg = msg = "Welcome to your computer, master " + masterName + ". Have a good day to you!"
    
    ElseIf currentHour >= 12 And currentHour <18  Then
    
    msg = "Welcome to your computer, master " + masterName + ". A very good afternoon to you!"
    ElseIf currentHour >=18 Then
    
    msg = "Welcome to your computer, master " + masterName + ". Have a good evening to you!"
    End If
    
    Set greeter = CreateObject("sapi.spvoice")
    greeter.Speak msg
    This is my current vb script now, i found the codes here http://mintywhite.com/software-revie...ogin-quicktip/ thanks!

    As much as possible i dont want to use software for this, just vb script. I'm still looking forward for someone who know the code for reading current system Time and Date.
      My Computer


  6. Posts : 1
    Windows 10 64bit
       #6

    Current Time and Date


    @ShinyJanJan:
    Here is a code that can be used for the current date and time:


    Set Sapi = Wscript.CreateObject ("SAPI.SpVoice")
    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
    Last edited by lonewolf812934; 22 Apr 2016 at 14:46. Reason: forgot to target the person
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:23.
Find Us