CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    48

    how to mimic key strokes in a application?

    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: [email protected]

    ---ytsau




  2. #2
    Join Date
    May 1999
    Posts
    3

    Re: how to mimic key strokes in a application?

    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
    );


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured