Author Topic: Another time telling script  (Read 1828 times)

0 Members and 2 Guests are viewing this topic.

bobsj2000

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
    • View Profile
Another time telling script
« on: January 28, 2015, 03:03:35 AM »
This is my first script in VoxCommando, so please be gentle. This is a really simple script that will report the time and date with a respectful human reaction flare.

Enjoy

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.6-->
<groupCollection open="True" name="Time">
  <commandGroup open="True" name="The time and date" enabled="True" prefix="" priority="0" requiredProcess="" description="">
    <command id="442" name="time" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="80" loop="False" loopDelay="0" loopMax="0" description="Simple command to retrieve time and date and announce with a respective flare.">
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>Please wait sir as I access that information from the world time servers. </param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <loop>
        <loopParams>
          <from>1</from>
          <to>4000</to>
        </loopParams>
        <loopActions />
      </loop>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>I have that information for you now sir.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <loop>
        <loopParams>
          <from>1</from>
          <to>2000</to>
        </loopParams>
        <loopActions />
      </loop>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>The current time is {DtCustom.h:mmtt} and today's current date is {DtCustom.MMMM dd yyyy}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>The current time is {DtCustom.h:mmtt} -- Current date is {DtCustom.MMMM dd yyyy}</param>
          <param>8000</param>
          <param>200</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType />
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase>What is the time</phrase>
    </command>
  </commandGroup>
</groupCollection>
« Last Edit: January 28, 2015, 08:40:02 AM by jitterjames »

SteveB69

  • Contributor
  • ***
  • Posts: 72
  • Karma: -1
    • View Profile
Re: Another time telling script
« Reply #1 on: December 22, 2015, 07:41:13 PM »
Thanks for that, am a total noob, gave me something to twiddle & learn on :-)
Chances are I've searched the forum, searched the wiki & scoured You Tube but I'm just to thick to work it out without help!