Author Topic: "Execute by name" with a specific phrase  (Read 4805 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
"Execute by name" with a specific phrase
« on: January 19, 2017, 08:03:34 PM »
This is one of those "huh, I thought it already did that", followed by "huh, didn't I see/make this request already" things for me:

Currently, when invoking a command using the "Execute Another Command" action's "Execute by name (Advanced)" feature, the invoked command does not "see" the phrase used to do this.

E.G. if the command "Bring me [his head on a platter;A lemon sherbet]" is invoked using
Code: [Select]
Execute command, 'Bring me a lemon sherbet' (by name) (and wait until it completes)
and said command contains something like
Code: [Select]
    Begin Text Compare : [{CMD}] Contains 'head on a platter'
        Inline C# Function: The severing and presenting of the gentleman's head
    Else
        Inline C# Function: The getting and serving of the sherbet
    End Condition
One would likely lose their appetite rather quickly as "{CMD}" would contain "Bring me [his head on a platter;A lemon sherbet]", resulting in the first option always returning true.


So, my request is that "{CMD}" returns the invocation phrase when "Execute by name" is used.
« Last Edit: January 20, 2017, 12:18:46 AM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: "Execute by name" with a specific phrase
« Reply #1 on: January 19, 2017, 09:07:52 PM »
Easy enough... I put a build out in the, 'unofficial' bin if you want to try it out before the beta: http://www.voiceattack.com/unofficial

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: "Execute by name" with a specific phrase
« Reply #2 on: January 20, 2017, 12:18:31 AM »
Yummy!

Wait...this is soap



Thanks, Gary! ;)