SnapShot
-
Hi, I want to Get a SnapShot of my System, somewhat like pressing "PrtScr" Key on the Keyboard... Anyone, Sample Code please... Thanks!!! :-D:-D:-D:-D:-D
-
Hi, I want to Get a SnapShot of my System, somewhat like pressing "PrtScr" Key on the Keyboard... Anyone, Sample Code please... Thanks!!! :-D:-D:-D:-D:-D
Look at the
keybd_event()
function to synthesize keystrokes, with theVK_SNAPSHOT
virtual key code. Make sure you generate a key press and a key release (see thedwFlags
parameter). Hope this helps,Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
Hi, I want to Get a SnapShot of my System, somewhat like pressing "PrtScr" Key on the Keyboard... Anyone, Sample Code please... Thanks!!! :-D:-D:-D:-D:-D
::keybd_event(VK_SNAPSHOT,0x45,KEYEVENTF_EXTENDEDKEY|0,0); use this api to get snapshot. and getting that image into your Application you have to querry Clipboard like this //paste HANDLE hBitmap=NULL; if (OpenClipboard()) hBitmap=GetClipboardData(CF_BITMAP); CloseClipboard(); and you got the image handle in hBitmap var I Think It will Work ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk
-
::keybd_event(VK_SNAPSHOT,0x45,KEYEVENTF_EXTENDEDKEY|0,0); use this api to get snapshot. and getting that image into your Application you have to querry Clipboard like this //paste HANDLE hBitmap=NULL; if (OpenClipboard()) hBitmap=GetClipboardData(CF_BITMAP); CloseClipboard(); and you got the image handle in hBitmap var I Think It will Work ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk
what if, i don't want to press a key?! coz, i want to make it automated... thanks for the info!!!