Author Topic: Can VoiceAttack remember actions?  (Read 3190 times)

Supercento

  • Guest
Can VoiceAttack remember actions?
« on: November 25, 2016, 02:41:55 AM »
Example:

Deploy landing gear >> landingear = on

Other order
Other order
Other order
Other order

Deploy landing gear >> if landingear = on >> sound: Sorry, landing gear is on

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Can VoiceAttack remember actions?
« Reply #1 on: November 25, 2016, 03:24:28 AM »
That is exactly what conditions and values are for.

Your "Deploy" command would look something like this:
Code: [Select]
Begin Boolean Compare : [LandingGear] Equals False
    Press G key and hold for 0,06 seconds and release
    Set Boolean [LandingGear] to True
Else
    Say, 'Landing gear already down'
End Condition

Your "Retract" command would be the inverse:
Code: [Select]
Begin Boolean Compare : [LandingGear] Equals True
    Press G key and hold for 0,06 seconds and release
    Set Boolean [LandingGear] to False
Else
    Say, 'Landing gear already up'
End Condition
For the "Boolean Compare" you'll want to have the "Evaluate 'Not Set' as false" option checked.

Supercento

  • Guest
Re: Can VoiceAttack remember actions?
« Reply #2 on: November 25, 2016, 05:00:47 AM »
Thanks, the problem is when i use other conditional for press button

Example:

Begin text compare [{CMD}] Start With 'landing'
Execute command, 'landing options' (and wait until it completes)
...



Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Can VoiceAttack remember actions?
« Reply #3 on: November 25, 2016, 06:23:51 AM »
Without more information, I'm not sure what you're trying to do. Can you post the commands you have so far?