this code dosnt use clipboard.

anyway i also would like to know how to write the bmp file from clipboard

invoke keybd_event,VK_SNAPSHOT,0,0,0

invoke keybd_event,VK_SNAPSHOT,0,KEYEVENTF_KEYUP,0
invoke OpenClipboard,0
invoke GetClipboardData,CF_BITMAP ;or CF_DIB ?
;... what now?

invoke CloseClipboard
invoke ExitProcess,0
Posted on 2004-12-22 06:05:29 by diablo2oo2
Have you read the other posts on this topic??
Posted on 2004-12-22 07:21:51 by dev_zero
Actually it is that he posted in the wrong thread, but I could not merge the threads.... or do not know how to
Posted on 2004-12-22 07:26:25 by roticv
hello, diablo2oo2.

your Proc and Allanon's Proc work fine.
but the pixels that captured from screen is less than the ACS capture soft captured from screen.

Posted on 2004-12-22 09:50:08 by dcskm4200
Hi, diablo2oo2


Your screenshot.exe can't capture layered windows (WS_EX_LAYERED) on Win2k, XP etc.

Let's fix it:
1) open screenshot.exe as binary,
2) find 2000CC00,
3) replace it with 2000CC40.

For screenshot.asm it means:

invoke BitBlt,memdc,0,0,dwWidth,dwHeight,hdc,0,0,SRCCOPY or CAPTUREBLT (instead of just SRCCOPY)

But since WINDOWS.INC of MASM32-v.8 doesn't contain CAPTUREBLT constant yet -

you must insert to screenshot.asm :

CAPTUREBLT equ 40000000h
Posted on 2005-02-16 20:44:33 by kero