I'm interested in automating the process of logging into a game by simulating keystrokes from the user.
Once the game has started, I can simulate keystrokes with SendMessage or PostMessages. However, for some reason at the login screens, this does not seem to work. I can send mouseclick messages, but none of my keystrokes are acknowledged. Is the game using directinput or something? Is there a mechanism for me to stick things into the keyboard buffer (w/o writing a device driver)?
My program runs the game as a child process. Do I have to dig in, find the relevant directx functions and hook them? (Was hoping it'd be easier than that).
Thanks in advance.