I use the macro below a lot to screenshot some information I need visible for other programs.
Mostly as a graphic designer it is color values from palettes, which disappear when the program does not have focus.
The screenshot is saved in the tmp folder, so no cleanup is necessary.
Keyboard Maestro “Take screenshot, save in tmp and open in preview” Macro
Take screenshot- save in tmp and open in preview.kmmacros (2.4 KB)