LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to take screenshot of open menu (fc4, gnome) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-take-screenshot-of-open-menu-fc4-gnome-366786/)

dr0n3 09-25-2005 01:46 AM

How to take screenshot of open menu (fc4, gnome)
 
I am using Fedora Core 4 (with gnome desktop). I am having some trouble taking screenshots. If I hit the Print Screen key, a Save Screenshot dialog box comes up, and I am able to save the image to disk as a PNG. However, if I have a menu open (e.g. Applications menu) and I hit the Print Screen key, nothing happens. I would like to know how I can capture a screenshot of an open menu.

Thank you.

logosys 09-25-2005 02:15 AM

Howdy!

The "Print Screen" button (above your Insert, Home, PgUp, etc keys, generally) will take a screenshot for you, then bring up the "what do you want to do with this SS" dialog.

dr0n3 09-25-2005 03:05 AM

logosys, I know where the Print Screen key is. Yes, when you press the Print Screen key, the Save Screenshot dialog box appears. Please read my post carefully. My problem is: If I have a menu open (e.g. Applications menu) and I hit the Print Screen key, nothing happens. I want to take a screenshot of my desktop with a menu open.

mjjzf 09-25-2005 05:22 AM

If you use import from the ImageMagick package, I believe there is a delay setting. That might do the trick. I see you are unlikely to be using KDE; but KSnapshot has a time delay feature, too. Gimp's acquire feature has a time delay, too.

cn_chopsticks 09-25-2005 05:55 AM

try"PrintScreen+Alt"

homey 09-25-2005 08:51 AM

I made a little diddy to capture screens on a delay interval. You should give your self at least 5 seconds so you have time to get to the next menu. Don't forget to pause long enough at that area.
Code:

#!/bin/bash
echo ""
echo "How many screenshots?: "
read num
echo ""
echo "Interval in seconds?: "
read sec
for ((i=1; i<=$num; ++i ));do
  let n=$n+1
  xwd -display :0 -root >image$n.xwd
  convert image$n.xwd image$n.jpg
if [ $n -lt $num ]; then
  sleep $sec
fi
done
#this gets rid of the xwd files
rm -f *.xwd


dr0n3 09-25-2005 11:05 PM

I installed KSnapshot which has a time delay option and it worked nicely. Thanks for everyone's input.

johnnydangerous 10-21-2005 04:19 AM

Quote:

Originally posted by dr0n3
I installed KSnapshot which has a time delay option and it worked nicely. Thanks for everyone's input.
how can I install it with yum??

phil.d.g 10-21-2005 06:11 AM

Code:

sleep 5; import -w root /somewhere/image.jpg
That gives you 5 seconds to go to the app and open the necesary menu, when the prompt returns you will have your screenshot

johnnydangerous 10-21-2005 06:16 AM

which command from that code you gave is actually doing the shot>?

phil.d.g 10-21-2005 06:38 AM

Its two commands - see the ';'?

First of all `sleep` is going to give me some time to set up the screen then the program `import` is going to take the screenshot. '-w root' specifies the window, root means the whole screen will be captured and the filename is where I want the screenshot saved.

`import` is part of Image Magick

Code:

man sleep
Code:

man import
for more details

johnnydangerous 10-21-2005 06:40 AM

10x, btw: I said which command which implies I know they are more than 1

phil.d.g 10-21-2005 06:44 AM

:confused: Are you talking about my commands or homey's code?

If about homey's code then
Code:

xwd -display :0 -root >image$n.xwd
takes the shot and
Code:

convert image$n.xwd image$n.jpg
converts the image to a jpg image

johnnydangerous 10-21-2005 06:52 AM

I was talking about your code, didn't know about import - seems shorter code for sure :)


All times are GMT -5. The time now is 05:08 AM.