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

Tkael

  • Jr. Member
  • **
  • Posts: 54
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: 1706
Re: Plugin method to execute commands if present in a referenced profile
« Reply #1 on: April 13, 2018, 11:58:23 pm »
Good observation.  I'll try to get this out in the next release (hopefully an, 'unofficial' shortly).

Gary

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

http://www.voiceattack.com/unofficial

Tkael

  • Jr. Member
  • **
  • Posts: 54
Re: Plugin method to execute commands if present in a referenced profile
« Reply #3 on: April 20, 2018, 12: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: 42
Re: Plugin method to execute commands if present in a referenced profile
« Reply #4 on: April 21, 2018, 06:57:00 pm »
@Gary have we told you recently that you're an angelic genius? Have a biscuit, I baked them myself.  :-*