Archive: Send Keyboard character to window


Send Keyboard character to window
Is it possible to emulate a keyboard input to a specific window. For example i have a text application and want to set the text cursor 2 fields down and 'typing' the text string "Test" to it by emulating user input with the arrow key (down) and sending Test to that window.

Hope you can help me
DOCa Cola


You can use Windows API, search MSDN for more info.

keybd_event can send key press events to the active window.


thx, i will take a look into it