0

I'm trying to make a c# application that every specified amount of time will press the specified button. My goal for this program is to run a game (MineCraft for example) and get the player to automatically jump to avoid afk kicks.

I've got it working but it will only send the characters if you are using notepad or some other textbox. It doesn't work in MineCraft or Terraria.

Heres the line of code that runs in order to simulate a keypress:

SendKeys.SendWait(buttonToPress);

I've done some searching and this page I found didn't help with my topic.

SendKeys or SendTextEntry to a game

I'm using Visual Studio Express 2013 for Windows Desktop

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291

0 Answers0