On Sat, 21 Mar 2020 16:06:42 -0400, Felix Miata wrote:
Istvan Gabor composed on 2020-03-21 20:50 (UTC+0100):
I would like to make screenshots of a window at every 3 minutes. Not the full display, only one specific application window. I have KDE3 desktop. How could I write a script to do it?
I use ksnapshot manually for taking screenshots of windows. Is it possible to control it from a script?
You can use import from ImageMagick in a script. I don't remember if I ever figured out how to determine the window ID needed, but I'm sure there's an answer to that on the web somewhere if you can't decipher the man page better than me.
It seems "import" can do it nicely what I want to do. I have to play a little bit with it to find the window ID automatically and move the window to the top layer. If it's covered by some other window, the covered part becomes black area in the screenshot. Thanks Felix! Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org