Pages

Tuesday, 7 January 2014

Create a Time Teller software in 20 secs

Dear All,

This tutorial aims at creating a Time Teller Software in just 20 secs. Interesting is it?

So shall we start




Steps

1. Open Notepad and copy the below code.

       Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
     Sapi.speak weekdayname(weekday(date))
     Sapi.speak monthname(month(date))
     Sapi.speak day(date)
     Sapi.speak year(date)
     Sapi.speak "Is the current date."
     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

2. Now "Save As" SaytheTime.vbs (Any name with .vbs extension will do)
    Dont forget to change the "Save As Type" to 'All Files".

3. Save and double click to hear the current Date (including Week day,
    Month  and year) and current time.

    Wow..see your software tells you the current date and time.Enjoy!!!


Related Topics




Thanks

Admin

  


1 comment:

  1. Egress Systems offer a superb selection of biometric time attendance systems including clocking terminals and attendance monitoring software.

    ReplyDelete

 

About Me

I am Tijo Tom, a Computer Engineer from India.Right from my schooling, I had a passion for Programming, PC Tricks, Virus Creation and Hacking.

I started this blog on Jan 1, 2014 to share my views and ideas with the world.

You can know more about me on