Click here to Skip to main content
15,911,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I am new to the group and look forward to a learn grow and help if I can.

I need a piece of code which can replicate the function of Alt + printscreen does.

Thanks and Regards,
Arun.
Posted

This article might help you:

TeboScreen: Basic C# Screen Capture Application[^]
 
Share this answer
 
Comments
itsarunforu 19-Jul-10 5:15am    
I want to capture a window using its port details. That too in C. Is that possible.
Note sure about c or C# but in VC++ i was using BitBlt API to Get This Done.

Basically you can achieve the handle of the window you want to print screen and using GetDC you can achieve it data and then Using BitBlt you can copy that data in your Device Context(DC) and save as any format you want.

one other very simepl way is you can fire the Alt+Print Screen Ket stroke as well to get your thing done using kbd_event of SendInput APIs :)

Hope this helps !!!

prakash
 
Share this answer
 
Comments
itsarunforu 19-Jul-10 5:15am    
I want to capture a window using its port details. That too in C. Is that possible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900