La开发者_Python百科nguage doesn't matter, libraries either, I just need the fastest way specifying the window (title or handle).
Try:
import // man import for options
To take a snapshot of my pidgin client.
import -screen -window Kompislista foo.jpg // Kompislista is in swedish.
You can specify a lot of options, such as frame or window id.
see man xwd
xwd takes screen snapshots
take a look at gnome-screenshot also.
gnome-screenshot --help
You can take the active window screen shot with -w option.
精彩评论