I have this program that i'd like a little help with it does what I want it to do ( automates mouse movement ) but I'd like it to be able to automate clicks how would I do that ?, the second part of my question is how would I keep it working once the program is unselected it looses the ability to move the mouse for me how would I go about makeing sure my program keeps controle even once something else has been clicked
To your second question -- When a program is taking control of input, it is like having two input devices plugged in. The users' input could still control, but the program will pull it away.
The MOUSEINPUT sturct that you are probably using to move the mouse also has a member called 'dwFlags' set it to MOUSEEVENTF_LEFTDOWN for a single left click. If your program stops working because the window looses focus that might be because of something in your Callback procedure. You would need to post that for us to know for sure.
well I kinda dont have a callback O.o I'm pretty new to C++ and to answer the other guys question I'm using windows 7 and as far as posting source code -_- right now I've gotta re-write it, computer apparently decided not to save the file for me