I don't exactly understand how and what you plan to do, but you can use the SendInput function to simulate keystrokes typed manually.