"Brian Jones" on  wrote...
| I have a script that contains the following line:
| 
| /usr/bin/import -page 754x582+20+20 $imgname
| 
| With ImageMagick 5.5.6 (on RedHat Enterprise Linux 3U5 x64) this does
| exactly what I want, it brings the selected window to the foreground and
| then captures the window, slightly resizes it, and saves it to file
| $imgname.
| 
| With ImageMagick 6.2.8 (on RedHat Enterprise Linux 5U1 x64) it does not
| bring bring the selected window to the foreground.  Instead, it acts as if I
| had added "-screen" to the command line, producing the undesirable behavior
| of capturing parts of overlying windows.
| 
| I couldn't find an option to force the window to the foreground.  Any
| suggestions?

A X window solution is to use   "xwit"  with the default -pop
option, to de-iconify and rasie the window to the top of the
window stack.

I use this to resize, position iconify various windows under program
control.  I also also used it to 'shake' a window to bring it to my
attention.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     Quazar Dragon (Draco Godawfulus Armageddonus)
         HIT DICE:  All there are
         SIZE:      LARGE!!!!  (120,600 miles from nose to tail)
         TREASURE:  1d4 Planets may be found in stomach
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to