Graeme Geldenhuys wrote: > Hi, > > MWSnap is an excellent screenshot capture program for the Windows > platform. It includes a few other nice features as well. One of them > is a "Window Information" feature. Awesome feature to spy on other > software to get an idea how how the created the GUI layout. :-) > I would like to try and write a utility for X11 platform to do the > same. Anybody got any ideas how to do it? > > * In MWSnap when you select "Window Information" feature, it seems to > take a snapshot of the desktop. I tested this by enabling the seconds > in the date/time display. The seconds stop ticking as soon as I select > "Window Information" feature. > * As you move the mouse over the screen, it displays information about > that window (handle, class, co-ordinates, dimensions etc). > * *This* is the real feature I'm trying to duplicate. As you move the > mouse, it draws a rectangle around the window area it's giving > information about. > eg: The button in a ComboBox or a Button or Edit on a Form etc.. The > following link shows what I'm trying to accomplish. > http://opensoft.homeip.net/~graemeg/mwsnap_screenshot.png > > Has anybody written such a tool, or know of an existing tool that does > this? Anybody know how MWSnap manages to do the above and how I could > do the same for X11? I would guess Felipe's Magnifier application > will give some hints on capturing the screen, but what about the other > parts? > > Regards, > - Graeme - > > > _______________________________________________ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://opensoft.homeip.net/fpgui/ > _______________________________________________ > Lazarus mailing list > [email protected] > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >
Hi, Try wininfo, its included in most distros. To find out how they do it, you can get the source from: http://www.freedesktop.org/Software/wininfo HTH, Funky Beast _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
