16

I need to capture a drop-down menu of a program. If I open the menu and then press PrntScr (print screen button), it first closes the menu and then captures the screen. I tried Ctrl+PrntScr, Shift+PrntScr, Alt+PrntScr but no success. I am using Ubuntu 14.04.

28

Run the Screenshot program (gnome-screenshot, or search for Screenshot in the Dash). Set a timeout (or delay):

enter image description here

And then get the menu and wait for the timeout to expire.

This only works with a whole-screen screenshot. So you'll have to manually crop later:

enter image description here

| improve this answer | |
  • Running gnome-screenshot just takes a screenshot. Is there any way to launch that graphical interface from the terminal? (Just mildly curious.) – TRiG Jun 19 '15 at 11:24
  • 2
    @TRiG gnome-screenshot -i, though you can set the delay directly (-d 5). – muru Jun 19 '15 at 11:25
  • Thanks. And --help shows that, of course. If I had more sense, I'd've found it myself. – TRiG Jun 19 '15 at 11:41
  • 1
    This doesn't work in Ubuntu 18.04. – carbocation Jan 7 '19 at 4:13
5

This is really simple using shutter and the best thing about using shutter is that you don't get to crop your menu later. It just captures the menu specified.

  1. Install and launch shutter

    sudo apt-get install shutter
    
  2. Using the shutter window, click on the 'menu' icon. See screenshot below:

    enter image description here

  3. You will then be prompted to choose and click on which menu you want captured. Let's take for example Firefox - my browser. See screenshot below:

    enter image description here

| improve this answer | |
  • Indeed, shutter should be the default. – muru Feb 13 '15 at 7:22
  • 2
    I disagree. I just tried this and the real problem is that it grabs only the menu. I frequently need context. I think the first answer is better, but there should be an easier way to do a timeout on a selection of the screen. – tu-Reinstate Monica-dor duh Aug 9 '17 at 23:30
0
  1. Open screencapture program using the "ubuntu button" then type "screen"
  2. There is a number field called "with a delay" add aproximately 4 seconds
  3. click on take screencapture
  4. open drop down menu
  5. wait until your screenshot is made
| improve this answer | |
0

Install the imagemagick package, then issue the following command on a terminal:

$ sleep 10; import -window root /tmp/screenshot.png

In the next 10 seconds change your active window, open the dropdown menu and wait. You will likely need to crop your screenshot afterwards.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.