Capture Window (Alt-Print Screen) of Context Menu

As everyone knows, sometimes developers have to document stuff. Or capture some stuff for filing bug reports.

My question is in MS Windows.

I’m trying to capture the context menu (the popup menu that appears after right-clicking an item) of several areas of an application. Pressing Alt to start the Alt+PrintScreen process closes the context menu.

(Only pressing PrintScreen helps, but it’s painful to remove the non-window areas everytime).

BONUS: For capturing menus, Alt also closes the menu. However, if you use the Alt key to open the menu in the first place, it works:

  1. Press Alt+F (for opening the “File” menu), don’t release Alt
  2. Press PrintScreen
  3. Tada!

Screen Capture Specific Window

Is it possible to screen capture a specific window (also possibly of another process)? Currently I am capturing the entire desktop of a specific monitor, however what I truly want is to capture the co

Monitor window (Screen capture)

I’m working on a c# wpf app in which I want a grid or rectangle to show the contents of a window in my application. It should be like a monitor which constantly shows what happens in the other window

Hide Context Menu when window is dragged

I’m interested how I can hide Context menu when I drag the main Stage or window? I’m working on this Validator example and I noticed several problems related to the Context Menu in Java 8 public class

How to capture unlock screen event in Window phone 7.1?

How to capture Screen unlock event and then fire some event from my app when screen is unlocked in Window phone 7.1?

Screen capture without active window

I’m trying to write a magnifier application using a winform or wpf windows. The idea is to drag the window over a spot on the screen and magnify it. I know it exists commercially but need to build a c

PHP: How to capture browser window screen with php?

First of all, i am not sure, if it is possible to capture browser window screen with php, then how to do it? If it is possible, the best will be to capture just the website content excluding browser p

popup window at chrome extensions’ context menu

I’m developing a chrome extension and have a problem. I’ve added an item to chrome’s context menu and want to open a popup window if the menu item is clicked. My code looks like this: function popup(u

Context menu and touch-screen devices

Now that touch-screen devices are so common, it’s a bad idea to design websites that uses a custom context menu? I’m talking about this kind of menus. How iPhone users and Android mobile users see con

How can I capture screen under my own window excluding my own window

Assuming I would like to program a magnifier, how could I capture the content of the screen excluding my very own window ? I know how to capture the screen with my own window using BitBlt and the Desk

Linux: launch window, capture screen

I need to write a Red Hat Linux command line tool that launches a window and captures its appearance to disk as a JPEG. Typically the target machines don’t have graphics cards, but we can install any

Answers

You might give a try to FastStone Capture which is imho the best tool for this kind of bug filing/doc making stuff.

With this app, just right click on the mouse so as to show the contextual menu, hit print screen, et voilĂ !

Try SnagIT. Works like a warm knife in butter! Also see this: http://stackoverflow.com/questions/26183/screenshot-taking-tools

You could use Screenshot Captor (free).

You can do a Windows Object Capture to grab only the context menu (works with menu capturing as well), or just normal printscreen key to capture the whole screen.

-mouser

[disclaimer — i am the author of Screenshot Captor]

I tried with my favorite, free screen capture software: MWSnap. I activated a shortkey (Ctrl + Shift + Z) to window/menu capture function, and while it was in background, I called Firefox’s context menu on this page and used the shortkey. MWSnap highlighted the menu and upon clicking, captured it flawlessly.

Probably works with other screen capture softwares. PrintScreen is so obsolete… 😛

(Bonus: no Paint to open, save in any common format (PNG, Jpeg) you want, autosave & auto-number of captures if you want, etc.)

20/20 can also capture a context menu http://www.sofotex.com/20/20-download_L230.html

You can’t get the menu on its own, but you can can get it to capture the parent window + context menu through a similar trick to the one you discovered with the main menu:

  1. Press & hold Shift
  2. Press F10
  3. Press and hold Alt (you’re still holding down Shift)
  4. Press PrintScreen
  5. Release Shift + Alt

At least you don’t have to install any software!

you don’t need anything. Just hook the menu window .

You may record the whole process with screen recording software DemoCreator. And you can add multiple callouts to your recording.

Im using PCHand Screen Capture, it could help u capture anything on the screen. i think it is pretty good, i know it from my friend, u can also try it. Hope it could help. http://www.screen-capture-record.com/

You could try PicPick

  1. Select screen capture -> capture windows control
  2. Do whatever you want, like right click to show the context menu
  3. Now you can see the menu (which is a windows control) is the active control (surrounded by the red rectangle), press PrtSc key to capture it.

Using Windows 7, I used Ctrl and PrntScr at the same time.

That captured the entire screen. I then pasted (Ctrl + V) into an image editor, and cropped out everything except the context menu.

I do have the Windows High Contrast Acccessibility Mode disabled on my computer (Control Panel -> Ease of Access Center -> Make the computer easier to see -> uncheck “Turn on or off High Contrast …”). I’m not sure if that was necessary or not.

Just press Print Screen. It will capture whole screen. Then open paint to a new window, and press Ctrl+V to paste then crop.

As far as capturing context menus such as right-click menus or others for which pressing the Alt-key causes the menu to disappear, at least on Windows 7, check out: http://blogs.technet.com/b/migreene/archive/2007/05/12/how-to-use-the-snipping-tool-to-capture-context-menus.aspx, as well as the comment there by Uwa.

Basically, open up Snipping Tool (which should be built into Windows 7 and can be searched for using the Start menu) and click the Cancel button, but do not close out of Snipping Tool. Then open up your context menu and press (on a desktop keyboard) Ctrl+PrintScreen. This will switch back to Snipping Tool, where you can select options before you capture, but leave your context menu open.

With Snipping Tool, you can capture a full screen, window, rectangular, or free-form snip. If you just want to capture the context menu and not the parent window, the rectangular snip will likely suit your needs best.

As an update to this post from an answer to those with Windows 7+ from the microsoft answers site

How to Print Screen a right click?

If you use the built-in “Snipping Tool” (find it in your Start menu), you can take a snip of a menu:

  • After you open Snipping Tool, press Esc to cancel the current snip, and then open the menu that you want to capture.
  • Press Ctrl+PrtScn.
  • Click the arrow next to the New button, select Free-form Snip, Rectangular Snip, Window Snip, or Full-screen Snip from the list, and then select the area of your screen that you want to capture.

There’s actually a slightly easier way for those users of the Snipping Tool.. I pulled this from the Microsoft site itself. It’s from this site: http://windows.microsoft.com/en-us/windows/use-snipping-tool-capture-screen-shots#1TC=windows-7

If you want to capture a snip of a menu, such as the Start menu, follow these steps:

Open Snipping Tool by clicking the Start button Picture of the Start button. In the search box, type Snipping Tool, and then, in the list of results, click Snipping Tool.

After you open Snipping Tool, press Esc, and then open the menu that you want to capture.

Press Ctrl+PrtScn

Click the arrow next to the New button, select Free-form Snip, Rectangular Snip, Window Snip, or Full-screen Snip from the list, and then select the area of your screen that you want to capture.

Users on Linux or BSD can try scrot:

scrot -d 5 'contextmenuincluded.png' -e 'mv $f ~'

That will take a screenshot after five seconds and place it in your home directory. Make sure you click the context menu open before the 5 seconds are over. After that, edit the screenshot with your favorite image editor (for example GIMP) to only keep the context menu.

On Ubuntu you install scrot like this:

sudo apt-get install scrot

On Arch it goes like this:

sudo pacman -S scrot

In Windows 7:

  1. Left-click the folder of the corresponding right-click menu you want to capture.
  2. Hold down shift and press F10.
  3. Tap the Print Screen button.
  4. If needed, use the Snipping Tool provided with your system to crop the image.

Press Ctrl + Alt + Print Screen.

The Ctrl won’t do anything, but it will prevent Alt for closing the context menu.

I can’t get accepted answer to work (despite disabling high contrast) but this does it:

  1. right-click context menu (obviously), use arrow keys, if you want to highlight a particular entry(that way it doesn’t get closed)
  2. Press Ctrl + PrintScreen
  3. You got the entire screen(s) into your clipboard, including context menu.

(the only difference is neither pressing F10 nor alt)

In response to the “BONUS” part of the OP, I sometimes just want to capture the contents of a “dropdown” from a menu (I may not be using to exact nomenclature). Now that the ribbon has replaced the menu in so many apps, to capture a “dropdown” from the ribbon (e.g. Excel, Home, Find & Select) – do the following:

  • Click on Excel ribbon: Home, Find & Select (“dropdown” should appear)
  • Move the mouse to the item that you want to be selected / highlighted
  • Press & hold Ctrl key
  • Press & hold Alt key
  • Press PrintScreen key
  • Release all keys
  • Paste captured ribbon “dropdown” box where you want it

This also captures the highlight on the selected item.

This works for me on Win7, Office 2010.

I use a more easy key pressing secuence (for main menus, not fot context menus):

  1. Press and hold Alt to show menu
  2. Use mouse or cursors to show menu as i want to snapshot/screenshoot
  3. Press and Hold Shift
  4. Press and release PrintScreen
  5. Now you can release Shift and Alt keys.

For context menĂșs i use this secuence:

  1. Show context menu
  2. Use mouse or cursors to show menu as i want to snapshot/screenshoot
  3. Press and Hold Shift
  4. Press and release PrintScreen
  5. Now you can release Shift and Alt keys.

All tested on Windows 10.

I had tried a lot (more than 25 apps) that claim to save ScreenShot to a file.

They do it, but not well.

All you can try this simple step by step tests:

  1. Without any of them active, press Alt+Printscreen to take the snapshot
  2. Paste the clipboard image on a paint application (Paint.Net could be fine) as a layer
  3. With one of such apps (screenshot) active, press Alt+Printscreen to take the snapshot, so it saves to PNG or whatever looseless format wanted
  4. Now open saved file and take a look to the size on pixels, compare it with the size of what you got on steps 1 & 2, surprise: they do not match!

It is also worst when window border is not (i will use Delphi constant names) “bsSizeable”, if it is “bsDialog”, “bstoolWindow”, etc, most of the applications that takes snapshops loose some part of the left and top part of the window; like if they where cropping.

So, i must ask:

Is there any application that can catch Alt+Printscreen to auto save the clipborad? Instead of them making their own screen shot!

In other words, when i use no tool i get the correct size / region pasted on clipboard, but when using applications to make screenshot easier, with some kind of windows i get more pixels around the windows border, or worst, lost part of the window.

All theese apps has that problem, and on them it is very easy to see it (there are a lot more with taht problem, but i put the most well known / most popular ones, in alfabethic order): Cropper 1.9.4, FSCaptureSetup53, GreenShot, Lightscreen, PrtScrAssistant, ScreenshotCaptor, … etc.

By the way, why they are making the screen shot by them selves? When Alt+Printscreen is pressed (without any hook, no screen capture app running, etc), Windows put on the clipboard the correct region; but when any of such apps are running, the clipboard / file / etc get an incorrect region.

Please note i am talking about “standard” windows, no theme, all with rectangular border, no personal GUI, etc… windows standard forms.

Some apps, put an extra margin arround the rectangular border of the window. Other apps, cut part of the rectangular window, so some part is lost, so much, that first letter of the title caption (when no system menu icon is shown) is lost.

Wich one does work (save same region) as the same as Windows stardard Alt+Printscreen? I do not yet know of any one, all i tested fails at that point.

The only solution i known is having Paint.Net open and use:

  1. Alt+Printscreen
  2. Alt+Tad to go to Paint.Net
  3. Ctrl+Alt+V to paste as new image
  4. Ctrl+S to save (it asks for path, name and type, etc)

From all apps i had tried, some of them do not auto save as PNG; most of the ones that create a PNG save wrong region (some with bigger region, some with insuficient region); allways talking about taking a snapshot of a standard rectangular window.

Tested on: Windows XP, 7, 8, 8.1 and 10

P.D.: If you are not a developer that can set BorderStyle and BorderIcons for your forms, just try with any app that show non resizable tool windows, dialogs, etc… it is really easy to see the difference between doing windo screen shot by windows and than paste the result versus any of theese apps that can auto save; remember you need to use Alt+PrintScreen (only the region of the active rectangular window wanted, no more, no less).

Found one working like a charm: free_clipboard_manager

URL: http://www.myportablesoftware.com/freeclipboardmanager.aspx

Concept is somehow different: Copy the clipboard to a file each time the clipboard changes.

And it also saves TEXT copied to clipboard in a TXT file.

Since it saves what is copied to the clipboard, it saves the screenshot just as windows does it, including alt-PrintScreen when window border is different, etc.

It is Portable, no install needed, and no elevation, etc, it runs in normal user account.

It creates a folder called clipboard where it store each thing copied to clipboard (tested only with image and text) to files, each time clipboard changes one file is created, a .TXT for text and a .PNG for images (can be changed in options to .JPG (90% and 80%).

I had tested it on Windows 10, so it also works on Windows 10.