Author Topic: Set Text Value to {DICTATION}  (Read 4126 times)

GreyArea

  • Guest
Set Text Value to {DICTATION}
« on: March 17, 2017, 02:57:46 PM »
I can get my {DICTATION} to fill with whatever I want...but I then want to clear it for the next input but still keep the value as another variable...can't figure out how to do it...

Tried;

Set text [searchfor] to {DICTATION} (but it puts scquare brackets around the output so I get [{DICTATION}] and when I Say [searchfor] I get a "Not Set"


Set text [searchfor] to {TXT:DICTATION} same as above.

Can this be done? Basically if {DICTATION} = "Money" how do I get the value of [searchfor] to also be "Money"?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: Set Text Value to {DICTATION}
« Reply #1 on: March 17, 2017, 03:08:23 PM »
...The square brackets are a visual indicator for the variable name, they're not actually part of it. Your variable is named "searchfor".

GreyArea

  • Guest
Re: Set Text Value to {DICTATION}
« Reply #2 on: March 17, 2017, 03:22:46 PM »
Sorry I'm a novice at this...can you correct to show me what the "set text" statement should look like?

Thanks!

GreyArea

  • Guest
Re: Set Text Value to {DICTATION}
« Reply #3 on: March 17, 2017, 03:35:18 PM »
I'm not using the [] when I type my variable name. I just have

searchfor

in the variable name box.

I've run a test and if I set the valuie to a text field of "This is a test", a following command of;

Say, "The value of searchfor is {TXT:searchfor}"

Results in "The value of searchfor is "This is a test".

But I cant get "searchfor" to set to the value of {DICTATION} - any format I try ends up with

"The value of searchfor is not set"

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: Set Text Value to {DICTATION}
« Reply #4 on: March 17, 2017, 03:47:15 PM »
Can you post your full command?

Tokens go in the "Text" field, not the "A variable" field.

GreyArea

  • Guest
Re: Set Text Value to {DICTATION}
« Reply #5 on: March 17, 2017, 04:19:43 PM »
That did it! I can't find anywhere in the manual that tells you that! Thanks!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2831
Re: Set Text Value to {DICTATION}
« Reply #6 on: March 17, 2017, 10:33:13 PM »
Around page 58, in the, 'Set a text variable' portion, although it doesn't explicitly state, 'Tokens go in the "Text" field, not the "A variable" field.'

Quote
You can choose to set your text value explicitly, by typing in a value and selecting the,    'Text' option.  This value can also contain other tokens that are replaced out when the command runs (see the section regarding tokens near the end of this manual).