Click to See Complete Forum and Search --> : how to mimic key strokes in a application?


ytsau
May 10th, 1999, 11:43 AM
Hi There,

I want to mimic some special key input, such as Print_Scrn_SysRq, Alt-Print_Scrn_SysRq,
and Ctrl-Print_Scrn_SysRq. How do I do that in my MFC application program?

Thanks in Advance. Please reply to: ytsau@usa.net

---ytsau

mahendra
May 12th, 1999, 02:43 AM
use function

VOID keybd_event ( BYTE bVk, // virtual-key code
BYTE bScan, // hardware scan code
DWORD dwFlags, // flags specifying various function options
DWORD dwExtraInfo // additional data associated with keystroke
);