VoxCommando

Help and Support (Using VoxCommando) => Command Builder Reference => Topic started by: cdburns123 on January 20, 2015, 12:49:38 PM

Title: Question on going into subcommands...
Post by: cdburns123 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.
Title: Re: Question on going into subcommands...
Post by: Haddood 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 ...
Title: Re: Question on going into subcommands...
Post by: Dave 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.
Title: Re: Question on going into subcommands...
Post by: cdburns123 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