Author Topic: Plugin method to execute commands if present in a referenced profile  (Read 4867 times)

Tkael

  • Newbie
  • *
  • Posts: 49
I'd like my plugin to check and see if specific commands are present in any of the current referenced profiles, and to execute (by name) specific commands if they are present within the current referenced profiles (including global and child profiles, not just the current active profile).

The `vaProxy.CommandExists(commandName)` method seems to only return commands from the top-most active profile. And the `vaProxy.ExecuteCommand(commandName)` method seems to only execute commands if they are present in the top-most active profile.

How can I check if a command is referenced in a child or global profile and then execute that command if it exists?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2824
Re: Plugin method to execute commands if present in a referenced profile
« Reply #1 on: April 14, 2018, 12:58:23 AM »
Good observation.  I'll try to get this out in the next release (hopefully an, 'unofficial' shortly).

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2824
Re: Plugin method to execute commands if present in a referenced profile
« Reply #2 on: April 14, 2018, 03:07:53 PM »
I popped an, 'unofficial' version out there if you want to try it out:

http://www.voiceattack.com/unofficial

Tkael

  • Newbie
  • *
  • Posts: 49
Re: Plugin method to execute commands if present in a referenced profile
« Reply #3 on: April 20, 2018, 01:35:40 PM »
Hey, sorry I didn't respond earlier. I must have missed your last post.
The "unofficial" build works perfectly. Thank you! :-)

ralf44

  • Newbie
  • *
  • Posts: 41
Re: Plugin method to execute commands if present in a referenced profile
« Reply #4 on: April 21, 2018, 07:57:00 PM »
@Gary have we told you recently that you're an angelic genius? Have a biscuit, I baked them myself.  :-*