Author Topic: {CMDSEGMENT:X} assignment of X question  (Read 2371 times)

jcdick1

  • Jr. Member
  • **
  • Posts: 55
{CMDSEGMENT:X} assignment of X question
« on: March 25, 2021, 10:51:30 PM »
If I have a command similar to this:

Code: [Select]
[show me the;give me the;display the;] [navigation;status;engineering] screen
So that "show me the status screen" or just simply "status screen" will achieve the same using {CMDSEGMENT:X},
does having the trailing semicolon in the first segment and using the brief form cause {CMDSEGMENT:X} to shift SEGMENT:1 to SEGMENT:0 when processing it since there's no part of the true SEGMENT:0 command actually spoken?


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: {CMDSEGMENT:X} assignment of X question
« Reply #1 on: March 26, 2021, 08:54:00 AM »
No. As mentioned in the documentation, optional sections that aren't spoken return a blank segment.

E.G. speaking "navigation screen" would have "{CMDSEGMENT:0}" return "" (blank), "{CMDSEGMENT:1}" return "navigation", "{CMDSEGMENT:2}" return "screen", and "{CMDSEGMENT:3}" (as well as all subsequent segments) return the literal text "Not set".

If you're unsure as to the output of a given token, you can use the "Write a Value to the Event Log" action to show its value in the log on VoiceAttack's main window.