Tip - Using the New KM 10 Progress Bar to Indicate the State of Something

(Thanks to @JimmyHartington for starting me to think along these lines.)

I love the new KM 10 Progress Bar Action and have been finding more and more uses for it.

In the past I wanted to be able to show a visual indication on Screen for when something was set in a certain state.

For example, in Adobe Illustrator I have a Macro that enables or disables "Snap to Point" (whether dragged objects snap to other objects or not). I wanted Keyboard Maestro to float some sort of window on screen that told me if I was in "Snap to Point" mode or not.

(Illustrator itself doesn't show any indication of whether Snap to Point is Enabled or Disabled - other than me having to drag an object near something else to test if it snaps or not...)

This EXAMPLE Macro shows it better than I can explain...

(Each run of the Macro either opens or closes the Pod Bay Doors depending on whether they were open or closed the last time the Macro was run.)

Screen Recording 2021-11-22 at 13.32.57-Animated GIF Small

By the way, if you run this - to close the Progress Bar Window just click the little cross in the top left corner (as happens at the end of the GIF).


EXAMPLE - Progress Bar to Indicate State of Something.kmmacros (4.7 KB)

How the Progress Bar shows itself is all to do with the Value typed into the Progress Field in each Progress Bar Action:

-1 caused the Progress Bar to pulse from side to side
99 shows the Progress Bar "full"
0 shows the Progress Bar "empty"
100 closes the Progess Bar

For my actual use in Illustrator I wouldn't have the Progress Bar pulsing - but it seemed to suit the Pod Bay Door Example :grinning:

Here is my actual use in Illustrator:

Screen Recording 2021-11-22 at 15.19.41-Animated GIFF Small 12fps