I'm playing a game and I have to walk for a while.
I have to press "w" for like 15 min and I would like some code to solve this.
I've tried sendkeys but that doesn't press the buton.
How can I make a program to solve this ?
This sounds like you're using a mobile device.
Get an app that let's you automate presses. Just search for it.
It's actually a game on pc and I need code for this.
I'm willing to make a program.
There isn't anyway to do this in c++ ? o;
Well, you could use <windows.h> but it isn't portable.