Jump to content
Macro Express Forums
et cetera

Option to re-run macro after human input. How to do this?

Recommended Posts

Hello,

 

How can I get a question to come up at the end of a macro asking if I want to repeat the macro? I'd like it to give me the option of having the user press "Enter" for yes (I do want to repeat it), and having the user press "Esc" for no (I do not want to repeat it).

 

I looked at the commands and in the PDF manual, but it's not clear to me how to do it.

 

Thank you very much.

 

Eric

 

Configuration: Macro Express 3.1b Build 1 (3.10.2.1) on a VirtualBox VM running Windows 10 Version 1511 (Build 10586.545).

Share this post


Link to post
Share on other sites

Instead of doing this at the end of the macro I would do it using two macros.

 

Create your main macro. Let's call it MainMacro.

 

Create a second macro that looks like this:

Variable Set String %T1% "Yes"
Repeat Until %T1% <> "Yes"
  Macro Run: MainMacro
  
  // Ask the user if they want to continue
  Variable Set String %T1% from Prompt
Repeat End

I did not test this sample. You may need to adjust it but this should get you started.

Share this post


Link to post
Share on other sites

Thank you, Samrae, I'll see if I can get my mind around that and do it that way.

 

I'm not a coder, just a plain old user. I made the macro via capture, not coding.

 

Thank you very much for your input,

Eric

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...