Hi,
I’ve been browsing Unity scripting docs for some time and I never found any suggestions/functions to use to emulate keyboard input using a script. What I have is a game demo which I want to turn into a real-time trailer (non-playable). Do any of You have any suggestions?
Thank You in advance for any response and for taking time to read my question!
-Michael
Why do you need to emulate physical input to do that? If you record the actions that the key presses create (such as move, jump, shoot etc) you can replay those instead.
That’s ingenious, thank you. 
Sorry to necro the thread, but I’d like to see if there’s another way to emulate physical input.
I’m dealing with a situation in which I not only use 3rd party code to process input, but I also do some fairly complex input processing as well. In order to properly test the way that I’m processing input, as opposed to how I’m responding to input (that is, responding to the result of processing that input), I need to actually emulate, record, and reproduce physical input.
Is there a way to do this?
Check out Autohotkey.
You should be able to record a script that watches mouse/ keyboard input.
I don’t remember if you have to make a script that does it. But I think it’s java. I’ll get you a link
http://www.autohotkey.com/
I’d say that’s the way to go.
So from what I can tell this appears to be a keylogger, and windows only. Maybe I should indeed be looking for a keylogger, but I’m not running windows. Interesting though, thank you.