You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Thursday, September 1st 2005, 6:07pm

Screen Grab, Comand line, window id problems


I am trying to take a screen grab of a window however there can be no mouse or keyboard needed in the process.

I have been messing with import from imageMagik and wmctrl - l to get the window id with no joy.

Could anyone tell me any other way to do this. Below is what I have been attempting to do this far.

I am sure there is some part to kde with I could use for this.

The full command I am running is:

import -window 0x0240001c screen.jpg

The error I am reveving is:

import: UnableToReadXWindowImage (0x0240001c).
import: missing an image filename `screen.jpg'.

Using wmctrl -l .... I can see that this is a window and that it is the window I wish to grab.

information from wmctrl -l :

0x0240001c 0 chance file:/usr/local/www/data-dist/swordfish/pageGen/individual-site-information.php - KDevelop

It may be a and probably is mistake in my part. I would like to be able to take a screen capture using import.

What am I doing wrong?



Posts: 89

Location: Lynnwood, WA, USA

Occupation: Senior Database Software Engineer

  • Send private message


Saturday, September 3rd 2005, 5:15pm

RE: Screen Grab, Comand line, window id problems

Are you saying you can't use either your mouse or your keyboard? How do you even type in your "import" command?

If you may in fact use your keyboard, then you can navigate through "ksnapshot" just with the keyboard.
Registered Linux User: #281828
Home: Fedora Core 6 / KDE 3.5.8
Work: CentOS 4.6 / KDE 3.5.8