How to make “Display text large" always display and until press Esc key

Thanks @Jerry. The first thing I notice about your macro is that you placed the setting of the display delay inside the until loop. It only needs to be used once since it is then set "for this macro". So I changed your macro to this:

image

I then used this macro to test the behaviour with different delay settings: 0, 5, 10 seconds.

With 0 seconds, memory went from 200MB to 350MB and memory pressure was low and not visibly affected

With 5 seconds, memory went from 200MB to 1.8GB and memory pressure remained very low.

With 10 seconds, memory went up to 2.8GB and memory pressure increased slightly.

Not very scientific but it confirms what @Airy originally said.

The increase in memory usage reflects the fact that the longer each window hangs around (i.e. the delay) allows further windows to build up and therefore consume more resources (RAM).

As to why the memory pressure on my system is largely unaffected, I can't explain.

From my point of view, I've learned something about the display text large action that I didn't realise. All this just strengthens my previous remark:

Maybe it's the reason of different CPU (intel / Apple M1), or different Keyboard Maestro versions.

Anyway, the macros you provided at beginning gave me a good direction, and now I set delay time to "0.3" second ( if set to 0 second, there is flicker effect between different windows). So the problem is solved, thanks a lot.

1 Like

That's great!

Okay. Just be aware that due to timing in any loop, the Escape key may not be detected sometimes, so you might have to press it several times or hold it down.

Got it, thanks.

1 Like