Subj : Re: win32 api To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Sun Aug 29 2004 12:59 pm mike wrote: >how can i make a app send the Alt + Print Screen keystroke to a window? i >want to capture a window in the windows clipboard so that i can do a Ctrl-V >to paste it somewhere. i was thinking something like this: Searched win32.hlp for "printscreen" and this was the only hit. "An application can simulate a press of the PRINTSCREEN key in order to obtain a screen snapshot and save it to the Windows clipboard. To do this, call keybd_event with the bVk parameter set to VK_SNAPSHOT, and the bScan parameter set to 0 for a snapshot of the full screen or set bScan to 1 for a snapshot of the active window. " Sounds like you don't need to send this to the "other" app. Whichever window is active gets shot. But, if sending it to yourself doesn't work, then try sending it to the other app. .