koden Posted January 6, 2006 Report Share Posted January 6, 2006 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 :-) Quote Link to comment Share on other sites More sharing options...
lemming Posted January 7, 2006 Report Share Posted January 7, 2006 The Repeat Start command has its own repeat counter. Loop up "Repeat" in the Macro Express Help for details and examples. Quote Link to comment Share on other sites More sharing options...
kevin Posted January 7, 2006 Report Share Posted January 7, 2006 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. Quote Link to comment Share on other sites More sharing options...
koden Posted January 9, 2006 Author Report Share Posted January 9, 2006 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 ???? Quote Link to comment Share on other sites More sharing options...
koden Posted January 9, 2006 Author Report Share Posted January 9, 2006 It's not working. Proberly have I done something wrong Quote Link to comment Share on other sites More sharing options...
kevin Posted January 9, 2006 Report Share Posted January 9, 2006 Make sure you put a checkmark in the 'Place Counter in Variable' checkbox in the Repeat Start command. And, I forgot to mention this part, make sure you select variable N1 to receive the count. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.