Author Topic: possible bug with xml payload  (Read 9941 times)

0 Members and 2 Guests are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: possible bug with xml payload
« Reply #30 on: November 01, 2010, 07:53:44 PM »
mmm, well it might not be the solution you want but the end effect will be the same.  You need to create a separate command for each powerstate.  I figure you've only got two or three actual states right?  Just create one command, and then clone it and change the phrases etc.

There isn't really another way because the command needs to be associated with a word, and the other words have payloads associated with them.  It's the way the MS engine works.  I can tell it that the user is going to say one of these things, and it will have this value.  One of those words has to have the value that points to the list of actions defined in the command builder.

The only other way around it would be to create a group with only one command in it and then it would know, ok if it is in this group it must be using this command, because it is the only one, but I would have to change the code, and for most people I think this would be confusing.