Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just want to know how to capture a portion of the screen .Getting the screen hot of a particular location and size in windows I want to do this using some windows key functionality I am not doing using and code and i am not looking for any tool. I just want to know if this is possible in windows

share|improve this question
    
Do you want to do it programatically? From which language/environment? What sort of screen capture? There are many possible duplicates (like stackoverflow.com/questions/1043880/… for .Net) –  Traveling Tech Guy Feb 26 '10 at 7:31
    
FYI :if it was in any language i would have tagged it Still i have clarified it in my edited version of question –  Ravisha Feb 26 '10 at 7:33
    
some thing like select a part of screen using mouse and capture only that portion –  Ravisha Feb 26 '10 at 7:34
    
This is not a programming related question, which will most likely be closed soon, but Windows Vista and Windows 7 has a program called "Snipping Tool" that can do that. –  TrickyM66 Feb 26 '10 at 7:45
    
You might also want to ask this on superuser instead of stackoverflow. –  MSN Feb 26 '10 at 16:57
add comment

migrated from stackoverflow.com Sep 13 '12 at 7:26

This question came from our site for professional and enthusiast programmers.

2 Answers

Either capture it with alt+PrnScr (so it gets only the active window) and then crop it in program of your choice, or use one of the programs on this list

share|improve this answer
add comment

You can write a program that gets a handle to the screen's device context (GetDC), does a BitBlt from that device context to a temporary one you created with CreateCompatibleDC and populated with CreateCompatibleBitmap. Then you select your memory bitmap out and save it. Make sure to release and destroy these GDI resources.

Do do this when the user hits a certain key, your program should call RegisterHotKey and then wait for the notification.

Search MSDN for these function names for more details.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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