Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!wuarchive!uunet!bellcore!kiwi!ddavey From: ddavey@kiwi.uucp (Doug Davey) Newsgroups: comp.windows.x Subject: Re: window dump WITH menus Message-ID: <1991Jun4.023017.10894@bellcore.bellcore.com> Date: 4 Jun 91 02:30:17 GMT References: Sender: usenet@bellcore.bellcore.com (Poster of News) Distribution: usa Organization: Bellcore Lines: 21 The key that unlocked capturing screen images with pulldown menus for me was setting the "saveUnder" resource to False. (Thanks for the tip Andrew.) For example: 1) Kick off your X application as follows: yourxapp -xrm "*saveUnder: False" 2) Then use xlswins to find the window id that you want. In this example we will use: 0x30016d 3) Then use sleep and xwd to dump the window. sleep 10 ; xwd -id 0x30016d >foo.xwd While the sleep is counting down, pull down the menu in your application, keep the menu pulled down, and smile. If you have ever taken a picture of yourself with a timer on a camera, this should all feel familiar. :-) Hope this helps. -- ------------------------------------------------------------------------ Doug Davey bellcore!bae!ddavey ddavey@bae.bellcore.com