I don't understand. You want to simulate input for your own program? Then you don't need any library, you just need to structure your input handling so that your code can't tell whether it's handling real input or input simulated by other parts of itself.
Thanks that's cool. But can you tell me anyway how I would communicate between autoit and C++ if I were to (or some other language)?
Like would I have to write to a file or something? Or is there a better way? Just curious, I understand that autoit can also be used as a general purpose programming language.
What do you mean "communicate with C++"? Do you want the C++ program to generate the fake mouse clicks and key presses, into another separate program (that presumably doesn't know whether or not it's being controlled by a human or machine)?