Xref: utzoo comp.windows.x:28024 alt.sys.sun:1630 Path: utzoo!utgpu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!spot!spot.wbst128.xerox.com!stein From: stein@spot.wbst128.xerox.com (Adam Stein) Newsgroups: comp.windows.x,alt.sys.sun Subject: OpenWindows and WM_COMMAND? Keywords: Save Screen Message-ID: <546@spot.wbst128.xerox.com> Date: 8 Oct 90 20:19:59 GMT Sender: news@spot.wbst128.xerox.com Reply-To: stein@spot.wbst128.xerox.com (Adam Stein) Organization: Imaging Science Engineering & Technology, Xerox Corporation Lines: 20 Since the 'Save Screen' command in OpenWindows is hardcoded to the filename it saves in (which is very inflexible), I thought I would whip up an X version of Sunview's toolplaces (it finds out the locations of the windows on your desktop and associated icons). Please let me know if this has already been done so I don't reinvent the wheel. By using xlswins, xprop, and xwininfo I can get all the information I need. Now comes the problem. WM_COMMAND is set only for a public domain program I have (calctool). For OpenWindow's programs (clock, shelltool, perfmeter) WM_COMMAND isn't set. Does anybody know of a way I can find out what command was executed with which window? Contool 3.0 also doesn't set WM_COMMAND but at least I can change that. I can't modify any of the programs that come with OpenWindows. Thanx for any help in advance. Adam Stein Adam Stein @ Xerox Corporation Email: stein.wbst129@xerox.com stein@arisia.xerox.com Disclaimer: Any/All views expressed ...!uunet!xerox.com!stein.wbst129 here have been proved to be my own. Hopefully one of the above will work.