Mouse click in game with C++
Hello, I have been coding a bot program for crossfire, and every thing is done and working correctly except the mouse click in game. I have tried many methods to make it, but all the methods don't work in game but only outside.
Please tell me how to code in C++ a mouse click that works in game or if you can do it in another language, please send me it as an executable that only clicks on the current mouse position then returns.
Thank you and i hope you can help me.