Today I noticed that all the variables that I want to save to the profile (checked the "save value to profile" option when defining the variables) actually do not persist when I close & reopen VoiceAttack and then try to redefine the variable with the "retrieve saved value" option.
So if I perform the following (Command "test"):
Set Text [squadmate1] to 'ashley' (save value to profile)
Set Text [squadmate2] to 'james' (save value to profile)
Set Text [{EXP:'squad'+'mate'+3}] to 'javik' (save value to profile)
Write '[Blue] {TXT:squadmate1} {TXT:squadmate2} {TXT:squadmate3}' to log
Set Text [squadmate1] to [Not Set]
Set Text [squadmate1] to [Saved Value] (save value to profile)
Write '[Blue] {TXT:squadmate1}' to log
..the output is (new log entries at the bottom):
ashley james javik
ashley
So the variable declaration, clearing to "Not set" and retrieval of the saved value works so far.
If I then run the following (Command "test2"):
Set Text [squadmate1] to [Saved Value] (save value to profile)
Set Text [squadmate2] to [Saved Value] (save value to profile)
Set Text [squadmate3] to [Saved Value] (save value to profile)
Write '[Blue] {TXT:squadmate1} {TXT:squadmate2} {TXT:squadmate3}' to log
then the output is the following:
ashley james javik
Again, everything's good so far.
However If I now close and restart VoiceAttack and then immediately run the "test2" command I get the following output:
Not set Not set Not set
As you can see I cannot retrieve the saved squadmate text values after restarting VoiceAttack.
From the Help Document pg. 59:
To save the text variable value with the current profile, check the, 'Save value to profile' box. The value will be available even if the VoiceAttack application is closed and opened again. This is a simple way to save your text value variable to disk.
I should note that I've installed VoiceAttack on a flash drive and I run it from there, but I would think that this shouldn't impact the functionality to save variables to a profile.
Any thoughts about why I cannot get the variables to reset to their saved values after restarting VoiceAttack? Is there something wrong with my syntax?