Answer the question
In order to leave comments, you need to log in
How to take a screenshot of a third party application window in ubuntu?
hello, rummaged through a bunch of codes on the net, I need to take a screenshot of a window in ubuntu OS. it was decided to take c++. I am very new to c++ as well as to ubuntu. I searched and tried the code for a long time, but it did not work out. At the moment, I have found and am inclined to install imagemagick and call the console with the imort command in my program, then I have a question
To take a screenshot of only a specific window, you need to specify either the window id or the title.
import -window [email protected]:~ screenshot.jpg
Answer the question
In order to leave comments, you need to log in
run the desired application and press the Ptr Sc / Sys Rq key, that's all :-)
But if you need it DIFFICULT, then ncurses is very good at window output to the terminal in Linux. There are a lot of things there. Read here link
And here it’s so simple super painted link
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question