News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

Question

Started by JonPeyton, August 27, 2019, 12:47:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JonPeyton

Is there a way to make a macro stop until it receives input from me?


thank you!

Kalle

Can you give us an example of what you're up to?
***********  get excited and make things  **********

JonPeyton

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

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

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

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.