Emulate user typing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Douglas

    #1

    Emulate user typing

    I'm writing a application that is a lot like a macro in C#. Basically, when
    a user presses a certain key, the software needs to generate a series of
    keystrokes.

    I have the code written that listens for the keystrokes using
    GetAsyncKeyStat e from user32.dll ... But for the life of me I can not
    figure out how to generate characters as if the user was pressing them.

    The keystrokes need to be in a different application which will have the
    current focus.

    The keystrokes are really simple (ALT X A B C)

    Any help is appreciated.

    Thanks in advance.
    --
    Jay Douglas




  • Jay Douglas

    #2
    Re: Emulate user typing

    Found it:



    --
    Jay Douglas



    "Jay Douglas" <jayREMOVEIFNOT SPAM@squarei.co m> wrote in message
    news:eaKb%23e9Y FHA.2996@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > I'm writing a application that is a lot like a macro in C#. Basically,
    > when a user presses a certain key, the software needs to generate a series
    > of keystrokes.
    >
    > I have the code written that listens for the keystrokes using
    > GetAsyncKeyStat e from user32.dll ... But for the life of me I can not
    > figure out how to generate characters as if the user was pressing them.
    >
    > The keystrokes need to be in a different application which will have the
    > current focus.
    >
    > The keystrokes are really simple (ALT X A B C)
    >
    > Any help is appreciated.
    >
    > Thanks in advance.
    > --
    > Jay Douglas
    > http://jaydouglas.com
    >
    >
    >[/color]


    Comment

    Working...