I need to take a screenshot that records my Eclipse IDE menu item status. For example, if I clicked the "Project" menu and there comes a list of menu items. I need to record those menu items.

The problem is when the menu item list window (which works like a context menu window) has the focus, the screenshot function is not working. I tried everything on this link and nothing works as long as the menu items window is opened. Any mouse click will close the context menu window, so I cannot use mouse either. However if there is no context menu window opened then screenshots works fine.

for GNOME see the answer provided; alternatively xfce4-screenshooter being invoked from command line or from Accessories menu offers an option to take a screenshot after a specified delay
– SergeJun 16 '16 at 14:19

1 Answer
1

If you're using GNOME, or have some GNOME tools installed, you can use gnome-screenshot with the --delay=# option. The delay is in seconds, and gives you that many seconds to open the "Project" menu so that it is open when the screencap actually happens. I also recommend the --window option to keep clutter in the screenshot to a minimum.