I see what you mean. It could maybe then be a spinner of some sort.
I am open for ideas. And willing to make a design suggestion if @peternlewis wants it.
Or maybe there is something like it built into the system, which can be used.
Ahh. Yes. I thought it should be possible with the Custom HTML Prompt. Did not know how to close it afterwards.
Will look into it.
But a native solution would still be nice
Hello! Im new to the forum and have been trying to adapt the multiple progress bars listed in this chat to different workflows. The thing that seems to throw me off is the placement of where the progress display should go in the order of the macro. I have been trying to test in on a simple repeat entry one, but I'm not having any luck.
Actually, you don't need to insert any Display Progress Bar action, because the Repeat action has a flag you can check off to automatically display a progress bar. Just click on the cogwheel in the Repeat action in your macro and you will see the option.
But if you really want to use the Display Progress Bar action, all you have to do is place it inside your Repeat loop. And then after your loop, you need to make the Display Progress Bar disappear.
To elaborate a little more, I've been tasked with creating a progress bar that not only shows how far along the macro has from completing, but if I put a prompt for user input action to repeat the macro a certain number of times, Id like to be able to show that progress. I was using this specific macro to try and understand how I could accomplish it. Below is the "goal" of what I'm trying to do:
EX:
████---------- "X%"
20 out of 100 complete
And this progress bar Id like to use on multiple macro cases, especially for one that will run for a while.
That's what both of my suggestions will do for you. Both of my suggestions will show the progress based on the actual value that you place in the Repeat action.
Your example seems to show something new (which you didn't mention in your first post), that you want it to actually report the percentage rather in addition to a progress bar. In that case you will have to implement my second suggestion.
As I said, just place the progress bar action inside the loop. And you will need to increment a variable from 1, going up by 1 for each time it loops, so you can calculate and display the actual percentage, using the formula: Counter/RepeatTimes*100 which you will display in the text box of the Display Progress Bar action. Perhaps like this:
There is only one KM-native Progress Bar -- every "Display Progress" from any executing macro updates that single dialog. Yes, you can have Duelling Macros, fighting over what the value should be
You put the action at any point(s) in your macro that you want progress to be updated (the Progress Bar will appear if it isn't already visible). It's often within a loop, but doesn't need to be.
It's not clear how you want the progress to be displayed -- you could do 0-100 for each of your "outer" repeats or you could do (0-100)/n x i, where n is "Repeat times" and i is the current repeat number.
Personally I think your "X%" is redundant -- that's what the bar is for! -- but I've included it in the demos to show extra calculation options.
These are just to give you ideas -- there's many ways you can do this, many ways to calculate and display "progress", depending on how you want it done. I always like the bar to complete before it disappears, for example, so will show 99 then 100.
The "Display Progress" action is limited to a Title and a Bar -- you can do quite a lot with just those, but if you want more you'll need to look at using either a "Custom HTML Prompt" or an external utility such as swiftDialog.
@Nige_S Thank you very much for these demos, the (Summarized) one is perfect. I am still fairly new to the software so I just had one more follow up on this. How do I take the summarized one that you created and adapt it to this current work flow that I have? Is it a simple copy paste? Or are there variables within this other workflow that need to be accounted for?
This is the current one, all I am trying to do is once I have entered the amount of times I want to repeat the actions, the summarize progress bar that you made, shows the progress of the number entered into that "Prompt for user input".
Thank you for your patience on this, still trying to fully understand: