Author Topic: Reset variables into a profile  (Read 6213 times)

miso58

  • Newbie
  • *
  • Posts: 11
Reset variables into a profile
« on: August 04, 2017, 09:43:54 AM »
I introduced in my profile variables that I saved in. And when I want to change them, the profile keeps the first
I do well clear the variables But whenever I recall the profile, it's the old data that I get
Is that the reset of the variables does well during the rescue in the profile


megs

  • Guest
Re: Reset variables into a profile
« Reply #1 on: August 04, 2017, 12:21:49 PM »
others/advanced/clear saved values from profile.

you cvan choose what sort of values you want to reset.

miso58

  • Newbie
  • *
  • Posts: 11
Re: Reset variables into a profile
« Reply #2 on: August 04, 2017, 03:11:39 PM »
I did this but it seems not working
I recorded the first parameters in vocal {DICTATION} and the second via the plugin VAExtension (Read ini file)
When I modify the profile and execute commands in the profile, it respects the data I have entered in the file (ini file).
As soon as I come out of the profile, and I reload the profile, the old data is loaded. {DICTATION}
Is it possible that the data recorded in vocal or via VAExtensions are different ?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Reset variables into a profile
« Reply #3 on: August 04, 2017, 05:54:39 PM »
Can you clarify how you're storing data using the "{DICTATION}" token?

If you use a token as a variable name, E.G.
Code: [Select]
Set Text [{DICTATION}] to '{DICTATION}'
The variable won't actually be named "{DICTATION}", but rather what the "{DICTATION}" token contains.

E.G. if you set the variable when VoiceAttack first starts, the variable will be named ""(blank). If you then dictate "test", the "{DICTATION}" token will contain "test", and all subsequent variable operations using "{DICTATION}" as a name will affect the variable named "test", rather than the variable named "".

miso58

  • Newbie
  • *
  • Posts: 11
Re: Reset variables into a profile
« Reply #4 on: August 05, 2017, 01:34:49 AM »
below the code with {DICTATION}

//
// Nom de pilote
//
Marker: Pilote_Nom
Say, 'donnez moi votre nom de pilote'  (and wait until it completes)
Start Dictation Mode (Clearing Dictation Buffer)
Start Loop While : [{DICTATION}] Equals ''
End Loop
Set Text [w@PiloteNom] to '{DICTATION}' (save value to profile)
Stop Dictation Mode
Pause 1 second

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Reset variables into a profile
« Reply #5 on: August 05, 2017, 09:00:34 AM »
Are you running the command while the "Edit a Profile" window is open? VoiceAttack will not store variables while it is.

miso58

  • Newbie
  • *
  • Posts: 11
Re: Reset variables into a profile
« Reply #6 on: August 05, 2017, 11:58:35 AM »
yes and I do 'execute' on the corresponding command. With this action, all is ok, and the variables are corrects, I can use them, but when I leave the profile and I reload it, the old variables are always actives

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Reset variables into a profile
« Reply #7 on: August 05, 2017, 12:47:49 PM »
That's what I'm saying. The variable value will change, but it won't be saved to the profile.
I believe it's a consequence of the profile functioning as a separate entity while the edit window is open, so you can revert changes. I.E. you can't save variables to the profile because it isn't available.

If you believe this to be a bug, you can post a report here.

TheThingIs

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 278
    • HCS Voicepacks
Re: Reset variables into a profile
« Reply #8 on: August 05, 2017, 01:54:08 PM »
exactly Pfeil

as Gary explained to me about the same issue...when you edit a profile, a copy is made and put into protected space for you to work on and also roll back changes if you need to. So anything like saved variables are actually being used on a different profile at that moment. To reset them you need to run the cmd with the clear variables in when not editing so that it then affects the actual profile. Remember also that it doesn't clear them from memory either, you have to stop and restart VA.
The Singularity profile - One profile to rule them all and at HCS we bound them ;)

You see, TheThingIs, eventually you'll be allright.

miso58

  • Newbie
  • *
  • Posts: 11
Re: Reset variables into a profile
« Reply #9 on: August 05, 2017, 02:24:44 PM »
I understand and thank your for all the answers