home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!caen!batcomputer!cornell!davis
- From: davis@cs.cornell.edu (Jim Davis)
- Subject: Can I operate on windows not created by tk?
- Message-ID: <1992Nov18.210008.27144@cs.cornell.edu>
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- Distribution: usa
- Date: Wed, 18 Nov 1992 21:00:08 GMT
- Lines: 12
-
- I would like to be able to operate on windows created by other
- applications besides tk. In particular, what I want to do is grab
- bitmaps from those windows, something like what xwd or the Open
- Windows snapshot tools do.
-
- I daresay I'll have to write new tk commands to get those bits,
- (anyone done that?). It is pretty easy to grab the mouse and get an
- XY position in the root coordinate frame, but what do I do next? I
- don't see any way to find the window at those coordinates. The
- window manager (twm) must know, but how can I ask it anything?
-
-
-