J
Jean
Hello, I´m a new user to C# and I have a question.
How to make my application emulate a key pressed? Not just the key press,
but keep the key pressed?
For example, let´s say that I want to emulate the 'A' key:
-I click in a button.
-Then, the program focus a field textbox on my Form and in this field, the
string AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA start appear after the
focus.
-When I click in another button, the 'A' key is released.
I try to use some methods like SendKeys, SendMessage and even a old windows
Api keybd_event, but don´t have success.
Anyone can help me?
tks!
How to make my application emulate a key pressed? Not just the key press,
but keep the key pressed?
For example, let´s say that I want to emulate the 'A' key:
-I click in a button.
-Then, the program focus a field textbox on my Form and in this field, the
string AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA start appear after the
focus.
-When I click in another button, the 'A' key is released.
I try to use some methods like SendKeys, SendMessage and even a old windows
Api keybd_event, but don´t have success.
Anyone can help me?
tks!