Image overlays on screen without taking focus?

Hey everyone, I'm trying to figure out how to essentially make my own custom notifications.

I'd like to be able to have custom images be displayed at fixed locations on a screen (and remain frontmost) and then slowly fade out all without taking the focus.

At the moment I've managed to make a .png image with transparency show up and fade away after a specified amount through the use of a custom HTML prompt. This being said, unfortunately the prompt takes a little bit to load up and even more importantly, it takes the focus. This makes it so that there's a 2-5 second gap where nothing can be done until the focus is back to the previous application after the custom html prompt has fully disappeared (window closes through some java).

Does anyone have any tips or has anyone managed to make custom notifications seperate from the notification action? Normally that would work but the use case for this is on a monitor with a very high resolution so it's important that the notifications be very visible.

Appreciate any help! :call_me_hand:

Best,
Eric

1 Like

Try using the gear menu and setting the Custom HTML Prompt action to run asychronously.

-rob.

1 Like

Hey Rob,
appreciate the help!

Unfortunately running it asynchronously did not seem to work as it still maintains the focus. Will try to see if I can come up with a JavaScript workaround and if so, will update here!

Thank you thought! :slight_smile:

Did you ever get this to work, Eric?

I want to do something similar that when I press a hot key, a "Cheatsheet" will pop up that labels the what each physical button does on my XP-Pen 22R graphics tablet. (For those times when my memory fails me…which is often!) This is really something that XP-Pen should build into their software, but since they don't…

My hope is I can get something like this to pop up quickly then be dismissed.

Bill

Try setting the "Custom HTML" action to "Asychronously", following it with a short pause to give it time to spawn, finishing with a "Bring Front Window to Front" action.

On my machine, a pause of 0.2 seconds is enough for a simple HTML prompt. But my gut feeling is that that could be highly variable, especially for a large/complex prompt, so try waiting for a change in the number of existing Engine windows instead:

Re-activate Front Window After HTML Prompt.kmmacros (4.7 KB)

1 Like