Author Topic: Could Someone tell me why this block of code wont work? Thanks.  (Read 2086 times)

MonkeyMagic75

  • Newbie
  • *
  • Posts: 8
Could Someone tell me why this block of code wont work? Thanks.
« on: November 03, 2020, 02:30:27 AM »
The spoken command being sent to VA is 'TACAN Dial one one X-Ray'

Begin Text Compare : [{TXTWORDTONUM:{CMDSEGMENT:2}}] Equals '1'
        Write 'yay' to log
End Condition

Thank you

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Could Someone tell me why this block of code wont work? Thanks.
« Reply #1 on: November 03, 2020, 09:47:10 AM »
Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer.

That is not the correct syntax for using literal values/tokens as a parameter for the "{TXTWORDTONUM:" token.

MonkeyMagic75

  • Newbie
  • *
  • Posts: 8
Re: Could Someone tell me why this block of code wont work? Thanks.
« Reply #2 on: November 03, 2020, 01:55:56 PM »
I was trying to be too clever and ended up creating a few lines of poop lol.