Author Topic: Group exclusive action  (Read 1864 times)

0 Members and 3 Guests are viewing this topic.

GMib

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 0
    • View Profile
Group exclusive action
« on: June 15, 2014, 03:56:23 AM »
would it be possible to have an activating group action disabling all the others but keeping in memory status groups.

for example if I have these groups:

default (on)
XBMC (active only for process: XBMC, XBMC not started at this time)
deactivated group (off)
Keyboard (off)

if i exclusive activate Keyboard group, vc respond only command in keyboard group
but if i run xbmc and deactivate Keyboard group i wan't :

default (on)
XBMC (on, xbmc is started)
deactivated group (always off)
keyboard (off)


is it possible to adding this feature ?

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Group exclusive action
« Reply #1 on: June 15, 2014, 07:48:39 AM »
There are a lot of actions to enable/disable groups available, which you can use with a logic block to get your result. The only thing is, your group names must be organized well.

Example:

If you execute your command to activate the "exclusive keyboard group", the logic block will check if the xbmc process is running and it's true, it enable the XBMC group - if it's false, the group will be disable.

I'm not sure what you mean by the "deactivated group" with off and always off

but it is possible that I misunderstand you  ::hmm
***********  get excited and make things  **********

GMib

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 0
    • View Profile
Re: Group exclusive action
« Reply #2 on: June 15, 2014, 08:05:56 AM »
yes it's possible but i've not only 4 groups ;) it's only for example.
in my idea, if keyboard group is activated, you can always use group.enable or disable on other group if you wan't, but vc do not execute command on this group while keyboard group is active.

deactivated group is always off because, it was off before activate keyboard group.

it's more simple to have exclusive group than manually enable/disable all group and testing with logic for all program who active group if process running.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Group exclusive action
« Reply #3 on: June 15, 2014, 08:14:38 AM »
Ok, thanks for the explanation.
***********  get excited and make things  **********

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Group exclusive action
« Reply #5 on: August 20, 2014, 12:47:43 PM »

GMib

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 0
    • View Profile
Re: Group exclusive action
« Reply #6 on: August 20, 2014, 02:17:16 PM »
cool, waiting for next release ;)
thanks