Jump to content
Macro Express Forums

Displaying progress of a Repeat?


Recommended Posts

I'm sure we've discussed this before but so far I haven't found the thread.

 

Is there a simple way to display the progress of a macro that uses a repetitive process please. Llke this one:

 

Repeat Start (Repeat 200 times)
Copy File/Files: "%tFilename%" to "%tPath%%tName%_%nCount%%tExt%"
Wait for File to Exist: %tFilename%_%nCount%
Delay: 0.1 seconds
End Repeat

It copies a file, renaming each one by attaching an incrementing number. Doesn't take too long, but it was hastily written and occasionally fails first time, probably because several other complex applications are also loaded. So I'd like to see its progress. e.g. as percentage in a message box - providing that doesn't seriously slow it down.

 

Even for 100% reliable macros, that would still be a nice-to-have feature.

 

--
Terry, East Grinstead, UK

Link to comment
Share on other sites

Try this:

Text Box Display: Progress ... // <--- Timed floating box or end of macro
Repeat Start (Repeat 200 times)
  Update Textbox: Progress ... // <--- Option in the Text Box Display command
  Copy File/Files: "%tFilename%" to "%tPath%%tName%_%nCount%%tExt%"
  Wait for File to Exist: %tFilename%_%nCount%
  Delay: 0.1 seconds
End Repeat
 
Link to comment
Share on other sites

I typically do it like Samrae. Way back when I created a some text box as progress indicators that used the block ANSI characters and the RFT support for colors to create a graphic colored bar. I'm sure the post must be out there someplace. Maybe the old beta forum?

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...