Author Topic: Question  (Read 2104 times)

0 Members and 1 Guest are viewing this topic.

JonPeyton

  • $upporter
  • Jr. Member
  • *****
  • Posts: 36
  • Karma: 3
    • View Profile
Question
« on: August 27, 2019, 12:47:43 AM »
Is there a way to make a macro stop until it receives input from me?


thank you!

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Question
« Reply #1 on: August 27, 2019, 06:26:23 PM »
Can you give us an example of what you're up to?
***********  get excited and make things  **********

JonPeyton

  • $upporter
  • Jr. Member
  • *****
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Question
« Reply #2 on: August 27, 2019, 07:59:50 PM »
Be glad to!

"Sarah open Calendar"
Launch.URL (google calendar)
TTS.Speak "Would you like to add an event sir?"

I need it to stop here and wait for my input, (yes or No) that will be used in a logic block
but it keeps running on to the next TTS. Speak action....

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Question
« Reply #3 on: August 28, 2019, 06:17:26 PM »
No it's not possible to make VC stop part way through a macro to wait for user input.  This feature has been requested before.

It's possible to do want you want though using confirmation and events.  There are several examples on the forum that use this method.

Basically it works like this:

At the point where you would like to pause for user input, you use an event to execute another command that is marked as requiring confirmation.  That command will then execute if the user says "yes".

JonPeyton

  • $upporter
  • Jr. Member
  • *****
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Question
« Reply #4 on: August 29, 2019, 01:02:15 AM »
Oh OK thank you, that makes sense
I apologize for not seeing the question previously asked, I looked but probably didn't word it the same.

thanks again!
JP

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Question
« Reply #5 on: August 29, 2019, 11:45:46 AM »
No problem.  I can see how you'd easily miss it unless you read every post on the forum.

Let us know if the hint is not enough and you need specific help.  But first take a look on the forum for some examples that use confirmation this way if you can find them.