i say "Exit game" and VA asks me "Really Exit the Game?" and i must say yes or no. if yes, continue and Exit, if no, exit the command line and Continue the Game. is it possible to realize that? Its like a Condition with a voice command inside.
If you want it in a single command, you'll have to use dictation:
Exit gameSet Boolean [DictationComplete] to False
Start Loop While : [DictationComplete] Equals False
Start Dictation Mode (Clearing Dictation Buffer)
Start Loop While : [{DICTATION}] Equals ''
End Loop
Stop Dictation Mode
Begin Text Compare : [{DICTATION}] Contains 'Yes'
Say, 'Exiting game'
Set Boolean [DictationComplete] to True
Else If Text Compare : [{DICTATION}] Contains 'No'
Say, 'Continuing game'
Set Boolean [DictationComplete] to True
Else
Say, 'Please say "Yes" or "No"'
End Condition
End Loop
Otherwise you need two commands:
Exit gameSet Boolean [Confirmation] to [Not Set]
Start Loop While : [Confirmation] Has Not Been Set
End Loop
Begin Boolean Compare : [Confirmation] Equals True
Say, 'Exiting game'
Else
Say, 'Continuing game'
End Condition
[Yes;No]Begin Text Compare : [{CMD}] Equals 'Yes'
Set Boolean [Confirmation] to True
Else
Set Boolean [Confirmation] to False
End Condition
I'm "abusing" VoiceAttack's tri-state boolean here, but it works well for this type of thing.
Regardless of which solution you use, the built-in Microsoft Speech Recognition engine may have trouble recognizing "Yes" and "No", so you could try "Affirmative" and "Negative" instead.
is it possible somehow to let VA sorta notice the keys i pressed?
For example:
In game i pressed the Missile, lets say "1", and VA says Fox One
If you're using a keyboard key, mouse button, or joystick button to trigger that event, you can use the corresponding "When I press" option(at the top of the "Add/Edit a Command" window) to make the command run when you press the key/button, and execute a "Play a Sound" action, for example.