Making a Mouse Click
I was wondering if it was possible to make a mouse click or move to a certain set of coordinates through a C program. I tried google but was unable to find information relating to this.
To give an example of what I mean, lets say I wanted to write a C program with a loop and two different sets of coordinates (of the monitor screen) contained within it. Would it be possible to do this, and would it also be possible to make the program control the mouse pointer and make the it move back and forth between coord-A and coord-B.
If this is possible, could someone please tell me what it is called (so i can try searching google again) or possibly give me some links to sites that explain how it works and how to do it? Thanks for your time.
Not in standard C. If you are using Windows you can use SetCursorPos(). You can also use mouse_event() or SendInput() to move the cursor or simulate a mouse click. If not Windows, post your OS. Note that moving the cursor can be considered very annoying