quixote
October 19th, 2005, 02:23 PM
Is it possible, and if so, what is the syntax? If not, can you please consider implementing it? I see nothing in the manual.
I'm using this script to create the variable "TimeofDay":
local time = win.GetLocalTime ()
hour = tonumber (time.Hour)
function GetTimeofDay ()
if hour < 12 then
return "Morning"
end
if hour < 17 then
return "Afternoon"
end
return "Evening"
end
TimeofDay = GetTimeofDay ()
and I would like to be able to use the voice action to say "Good {TimeofDay}, blah blah blah"
Thanks.
I'm using this script to create the variable "TimeofDay":
local time = win.GetLocalTime ()
hour = tonumber (time.Hour)
function GetTimeofDay ()
if hour < 12 then
return "Morning"
end
if hour < 17 then
return "Afternoon"
end
return "Evening"
end
TimeofDay = GetTimeofDay ()
and I would like to be able to use the voice action to say "Good {TimeofDay}, blah blah blah"
Thanks.