1

I want to be able to control a game (Planes) from a C# application. I have tried various methods, including

  • SendKeys.SendWait("W")
  • SendKeys.Send("W")
  • InputSimulator
  • SendInput

If i open notepad and run my code I can see that all of these methods work (The letters WASD is written according to the code). However when i open my game it does not react to these inputs.

Anyone have an idea to a better approach?

user3170354
  • 391
  • 1
  • 4
  • 11

1 Answers1

0

Your syntax is wrong. Should be;

SendKeys.SendWait("{W}");
clamchoda
  • 4,411
  • 2
  • 36
  • 74