Author Topic: How to take a screenshot while you opened a right-click menu  (Read 1010 times)

0 Members and 1 Guest are viewing this topic.

Offline Heart Of A Lion

  • Sr. Mitglied
  • ****
  • Posts: 313
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: Xfce, Enlightenment
  • GPU Card: ATi 7770 . . . . . . . CPU: AMD octacore 4GHz
  • GPU driver: Free (video-ATI)
  • Kernel: 4.6 (x64)
  • Skill: Intermediate
All desktop environments based on X11 prevent you from using hotkeys while you opened a right-click menu inside of them.

The same is true for Xfce.

So how would you then take a screenshot of a right-click menu?

You can write a script that takes a delayed screenshot using the sleep command. It then waits a number of seconds before taking a screenshot, so it will work even when you have a right-click menu open.

Code: [Select]
sleep 5
xfce4-screenshooter -f

Run the script and open a right-click menu to take a fullscreen screenshot. You can later crop the image in Gimp or Krita.
« Last Edit: 14. April 2016, 19:22:50 by Heart Of A Lion »

Offline Orbmiser

  • Sr. Mitglied
  • ****
  • Posts: 415
  • Photographer / Techy Ole' Fart
  • Branch: Stable
  • Desktop: Netrunner Plasma 5
  • GPU Card: Ati 4350 Dual Displays
  • GPU driver: Free Open Driver
  • Kernel: 4.1.16-1
  • Skill: Novice
Re: How to take a screenshot while you opened a right-click menu
« Reply #1 on: 14. April 2016, 19:20:17 »
Real easy in Plasma 5 with Spectacle. Invoke Spectacle then Set to 3 second delay and set for Rectangle region.
Then can invoke right click menu and capture already cropped to just the menu with your region selecting the area.

But yep can't even invoke Spectacle with right-click menu already invoked.
« Last Edit: 14. April 2016, 19:23:04 by Orbmiser »

Offline kouros17

  • Held Mitglied
  • *****
  • Posts: 531
  • Branch: Unstable
  • Desktop: Xfce (4.12.3)
  • GPU Card: AMD Radeon HD 8570 / R7 200 Series
  • GPU driver: Non-free (Catalyst)
  • Kernel: 4.6rc7 - x86_64
  • Skill: Intermediate
Re: How to take a screenshot while you opened a right-click menu
« Reply #2 on: 15. April 2016, 01:16:21 »
You can write a script that takes a delayed screenshot using the sleep command. It then waits a number of seconds before taking a screenshot, so it will work even when you have a right-click menu open.

Interesting, but you can do the same with screenshooter on xfce (just opening the app and adjusting the delay you want, 5,6, 7 seconds, e.t.c).
What more does the script?
« Last Edit: 15. April 2016, 01:18:58 by kouros17 »

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: How to take a screenshot while you opened a right-click menu
« Reply #3 on: 15. April 2016, 01:32:29 »
bind
Code: [Select]
scrot -d 5
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline Heart Of A Lion

  • Sr. Mitglied
  • ****
  • Posts: 313
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: Xfce, Enlightenment
  • GPU Card: ATi 7770 . . . . . . . CPU: AMD octacore 4GHz
  • GPU driver: Free (video-ATI)
  • Kernel: 4.6 (x64)
  • Skill: Intermediate
Re: How to take a screenshot while you opened a right-click menu
« Reply #4 on: 15. April 2016, 02:12:09 »
Interesting, but you can do the same with screenshooter on xfce (just opening the app and adjusting the delay you want, 5,6, 7 seconds, e.t.c).
What more does the script?

Good point.

With a script you have more flexibility in terms of automation though.