LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2005, 02:46 AM   #1
dr0n3
LQ Newbie
 
Registered: Sep 2005
Distribution: FC4
Posts: 7

Rep: Reputation: 0
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.
 
Old 09-25-2005, 03:15 AM   #2
logosys
Member
 
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178

Rep: Reputation: 31
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.
 
Old 09-25-2005, 04:05 AM   #3
dr0n3
LQ Newbie
 
Registered: Sep 2005
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 09-25-2005, 06:22 AM   #4
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
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.
 
Old 09-25-2005, 06:55 AM   #5
cn_chopsticks
LQ Newbie
 
Registered: May 2005
Location: Nanjing, China
Posts: 17

Rep: Reputation: 0
try"PrintScreen+Alt"
 
Old 09-25-2005, 09:51 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
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
 
Old 09-26-2005, 12:05 AM   #7
dr0n3
LQ Newbie
 
Registered: Sep 2005
Distribution: FC4
Posts: 7

Original Poster
Rep: Reputation: 0
I installed KSnapshot which has a time delay option and it worked nicely. Thanks for everyone's input.
 
Old 10-21-2005, 05:19 AM   #8
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
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??
 
Old 10-21-2005, 07:11 AM   #9
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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
 
Old 10-21-2005, 07:16 AM   #10
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
which command from that code you gave is actually doing the shot>?
 
Old 10-21-2005, 07:38 AM   #11
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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

Last edited by phil.d.g; 10-21-2005 at 07:42 AM.
 
Old 10-21-2005, 07:40 AM   #12
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
10x, btw: I said which command which implies I know they are more than 1
 
Old 10-21-2005, 07:44 AM   #13
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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

Last edited by phil.d.g; 10-21-2005 at 07:46 AM.
 
Old 10-21-2005, 07:52 AM   #14
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 Gnome Menu - Customize SirAeryn Fedora 9 10-14-2005 01:15 PM
FC4 - Gnome: menu disappears Ephracis Fedora 0 09-05-2005 10:04 AM
KDE applications menu replaced by Gnome style menu denh0 Mandriva 2 11-24-2003 01:14 AM
screenshot for start menu alrawab Linux - Software 2 03-07-2003 03:26 PM
gnome/screenshot j-ray Linux - Newbie 1 05-24-2002 07:31 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration