This looks perfect for what I'm trying to do. I need to stop mucking around with SendInput() and let someone else do it for me!
http://inputsimulator.codeplex.com/
The problem is there's no documentation for getting the code working as simply as it does on the home page there. Can someone help me with the 'other code' I need to have in my program so I can just type InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
like he does in the examples?
I've started with:
[DllImport("InputSimulator.dll", CharSet = CharSet.Auto, SetLastError = true)]
which I think is correct. What else do I need?
Thanks!