Jump to content
Macro Express Forums

Function That Shows How Many Repeat That Is Left?


koden

Recommended Posts

I use a macro with repeat function.

Sometimes I ativate it with repeat that runs 200 times.

 

But can I in some way see how far the macro is??

 

has it repeat 10, 100 or 150 times. that would sometimes be nice to know :-))

 

Hope you understand my funny english :-)

Link to comment
Share on other sites

You could use Text Box Display command to display the count. Something like this:

Repeat Start (Repeat 100 times)
 Text Box Close: Count is
 Text Box Display: Count is %N1%
 
 // Put your macro commands here
 
Repeat End

Updating the Text Box will slow down your other macro commands. This may not matter but if it does you might want to update the display of the count less frequently. This example updates the display of the counter every 10th time through the loop.

Repeat Start (Repeat 100 times)
 Variable Modify Integer: %N2% = %N1% / 10
 If Variable %N2% > variable %N3%
   Text Box Close: Count is
   Text Box Display: Count is %N1%
 End If
 Variable Modify Integer: Copy %N2% to %N3%
 
 // Put your macro commands here
 
Repeat End

Make sure you put a checkmark in the 'Place Counter in Variable' checkbox in the Repeat Start command.

Link to comment
Share on other sites

Thanks...

 

So it must be like this

 

repeat prompt start (where I put in how many times it has to repeat.

 

Variable Modify Integer: %N2% = %N1% / 10

If Variable %N2% > variable %N3%

Text Box Close: Count is

Text Box Display: Count is %N1%

End If

Variable Modify Integer: Copy %N2% to %N3%

 

and after this the rest of my macro

 

This will give me a box that every 10 repeat updates with how many times left or have been done ????

Link to comment
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...