[prog] listing window IDs

Miriam English mim at miriam-english.org
Sat Feb 27 23:13:58 UTC 2010


Hi all,

I want to use ImageMagick to grab a window in an automated way. If I use 
ImageMagick's "import" command it waits for me to select (with a 
mouse-click) the window that I want the screenshot of. But ImageMagick 
can also use other commands, like "display" or "convert" to take their 
input from X. For example "display x:SeaMonkey" will display a 
screen-grab image of the window that is named "SeaMonkey".

Anybody know of a Linux command to list all the window IDs as a text 
file? Also, if two windows have the same title, do you know if it is 
possible to distinguish between them?


-- 
If you don't have any failures then you're not trying hard enough.
  - Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory
-----
Website: http://miriam-english.org
Blog: http://miriam_e.livejournal.com


More information about the Programming mailing list