hey guys it been a while since i've been on, i ended up moving back to my home state boy am i glad to be back!! Any ways i'm trying to make a script that would ask "are you shure you wish to delete this??" and wait for a voice response this is what i have so far.. thank guys.
Script ******
Sub Main
hs.lastvoicecommand = ""
hs.AddVoiceCommand("yes")
hs.AddVoiceCommand("no")
if hs.lastvoicecommand = "yes" then
hs.speak "all done"
end if
if hs.lastvoicecommand = "no" then
hs.speak "cancelled"
end if
End Sub
Script ******
Script ******
Sub Main
hs.lastvoicecommand = ""
hs.AddVoiceCommand("yes")
hs.AddVoiceCommand("no")
if hs.lastvoicecommand = "yes" then
hs.speak "all done"
end if
if hs.lastvoicecommand = "no" then
hs.speak "cancelled"
end if
End Sub
Script ******
Comment