Well I am making an AFK Bot for a FPS game called Combat arms.
What it is supposed to do is Move Up, Down, Left, and Right by itself while I am AFK.
I want it to press Spacebar to jump too.
I also want it to Press the Left button of the Mouse so it can shoot while I am AFK.
I was told the SendInput() function could do this for me. So I looked at Msdn and googled it a bit, I got some source codes but it was a bit confusing. I had no idea how it worked. I mean how could I use a code if I don't know how to really work the function? It seems that it presses Key_Up for me in notepad, I tried and noting.
I was hoping for you guys to tell me how I could go about making the bot with the correct function and explain how it works.
Maybe you could even give me a example source code that works?
I need an example for both Mouse click and Key Press.
Once I have a nice example I will be set.
I learn really fast.
[Extra notes]: Yes I know basic c++, I am a game programmer, and I pretty much know enough to make programs on my own. Once You show me a good source code and tell me how it works i'll know what to do from there.