27

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.

muru
  • 207,228
PHP Learner
  • 2,948

6 Answers6

42

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

gnome-screenshot

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:

captured drop-down menu

Lorenz Keel
  • 9,511
muru
  • 207,228
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

muru
  • 207,228
Parto
  • 15,647
4

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.

Clauz
  • 41
3

Use Flameshot, it also has an option to capture a rectangular area so you won't have to manually crop it.

Create a shortcut to these commands for easy access:

flameshot launcher

and

flameshot gui

enter image description here

Sample output:

enter image description here

Hani Shams
  • 321
  • 3
  • 9
0

I like flameshot too, but another useful program is peek, it lets you capture animated gifs.

Install with the command: sudo apt install peek

Place the Window over the area you want to capture, press record and do the normal actions you want to show. Pressing stop recording will show a prompt where to save the file. The output file size is minimal.

Jakke
  • 1,108
  • 1
  • 13
  • 26
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