My work currently uses the hpux (11i) built screen
grabbing tool screencapture to capture images for our
electronic logbook. The problem with this tool (that gm
solves) is that it does not function properly
cross-platform (many office users use redhat linux boxes).
So far gm has been great in testing and answers this
and several other problems very well. But there is one
"feature" in hp's screencapture that I wanted to see if
there was a way to imitate:
When you use screencapture to grab an xterm window (for
example) it will grab any windows on top of that one
two, sort of like this:
-----------------------------------------------------------------
| grabbed window |
|
|
|
------------------------------------ |
| |
| |
| | Overlayed window | |
| |
| |
| |
| |
|
------------------------------------ |
-----------------------------------------------------------------
This is useful to us (for example, for grabbing a
script window and a pop-up error message) and we would
like to keep it in gm if possible.
To my experience though, using:
gm -import gif:/tmp/gm.gif
when you click on a window, it pulls the window to the
top. Is there a way to disable this?
The other issue is an apparent bug:
If I use the above import command, and click on the
desktop (hpux, cdev) all windows vanish and I have to
restart the workspace manager to get my windows back.
Is there a fix for this?
Thanks.
Logged In: NO
UPDATE (from post-er):
It looks like the -screen option is supposed to do what I'm
looking for, but it doesn't work, the "clicked on" window is
still pulled to the top before the picture is grabbed.
Logged In: NO
You can use '-window root' to capture the entire screen.
This avoids changing any window stacking orders. The main
drawback with this approach is that you will then need to
crop out the desired part of the screen.
Logged In: NO
(from post-er)
Right, but my users would scream if they had to take any
extra steps (like having to crop a picture), so I'd like to
avoid that (if it's possible at all).
I'm curious why the '-screen' option doesn't do what I'm
looking for. Any experts out there have any idea, or maybe
could give an explanation of how/what the '-screen' option does?
Closing this discussion since it is very old. The ids of the posters seem to have been lost.