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
No comments:
Post a Comment