Generate mutiple key strokes in a single key press

Discussion in 'Windows Vista Drivers' started by Robert, May 16, 2005.

  1. Robert

    Robert Guest


    I successfully modified kbfiltr example from ddk to inject/ remove
    keystrokes. This works fine.

    I can filter and modify any key press with the scancode received
    through PKEYBOARD_INPUT_DATA's Makecode.

    Now i need to insert multiple keystrokes when a single key was pressed.
    for example when user press <a> i should make it deliver <F1><a>.

    How can i inject <F1> keystroke additionally into the
    Do i need to call my KbFilter_ServiceCallback routine again? or
    any other easy way to do it?

    Thanks a lot guyz..
    Robert, May 16, 2005
    1. Advertisements

  2. if this is with in the context of <a> being reported to your own callback,
    just declare a KEYBOARD_INPUT_DATA array on the stack, initialize it, then
    call the upper service callback with the new keystrokes, then finally report
    <a> using the caller's buffer.

    Doron Holan [MS], May 16, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.