Author Topic: Question on going into subcommands...  (Read 2555 times)

0 Members and 1 Guest are viewing this topic.

cdburns123

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
    • View Profile
Question on going into subcommands...
« on: January 20, 2015, 12:49:38 PM »
I was wondering if there is a way to do this:

I say, "TV guide"...the tv guide displays on the tv.

But I want to keep everything under "TV".  So, then I can say, "record", "info", "select"...etc...without having to say, "TV record".."TV info"...etc.

This should keep the subcommands available until I say, "TV exit"...
and I don't want to have just "select", etc. as commands, because they could be used in other applications.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Question on going into subcommands...
« Reply #1 on: January 20, 2015, 01:00:13 PM »
there are many ways to do this ... you can create a separate group for all TV commands except "TV Guide"

so when you say TV guide, you enable the tv group and disable everything else .. however that won't be successful with open-air mic setup ... as VC will hear those words from the TV you are watching and goes wild ...

I am sure others will give you other approaches ...
When Voice command gets tough, use hand gestures

Dave

  • $upporter
  • Sr. Member
  • *****
  • Posts: 139
  • Karma: 31
    • View Profile
Re: Question on going into subcommands...
« Reply #2 on: January 20, 2015, 01:30:03 PM »
You could create a variable which stores the program or device you want to control. So whenever you call "TV Guide" you set the variable to "TV". When you open XBMC you set the variable to "XBMC".

Then you can create combined commands i.e. for "select". this command can use logic blocks to check the variable and then executes either TV Select or XBMC Select or whatever else you want to control.

cdburns123

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Question on going into subcommands...
« Reply #3 on: January 20, 2015, 04:54:40 PM »
Thanks!  I think the variable would work best. Basically set a variable when I say TV guide to TV....then use that variable until I say TV exit:

TV guide...set variable to TV
select...checks the variable, if TV, then TV select
TV exit....set variable to null.

Makes sense. 

Thanks again