Hello guys,

I'm studying c# and trying to develop a bot which simulates keyboard strokes and mouse clicks.

But i'm having some troubles:
1# I only manage to send keyboard strokes with the client in focus, with the SendKeys. Tried SendMessage, and PostMessage... did not work.


Can you guys put me in right direction?
Whats the best way to simulate keyboard?
Is there any ready api? (tried InputSimulator API, but does not work on non focused windows)

Thank you very much!