Some advice on programming needed
I am trying to write a program that would be able to
- react on mouse clicks anywhere (not only on the program window itself)
- get the mouse coordinates
- move the mouse to specific coordinates and click there
I haven't coded much in any "real" programming languages, just some python and C++, but I still can't do pretty much anything with them. I tried this today with C++, tried to find something with google and realised that there is absolutely no information on making anything with C++ available. (I've tried to look for some things before and it was the same.) The only thing I found out is that you have to use hooks, but then I got stuck because there wasn't any information on hooks except MSDN reference, but it didn't help much because there are no examples and I don't know enough C++ to work from the syntax only. Then, after I got frustrated with this whole shit, someone pointed out that I should use some "more hi-level language" for this.
So now, what I'm asking is that first of all should I do this with some existing program (I would want the program to do this: I rightclick on the screen -> it stores the coordinates -> I move the mouse elsewhere -> I press some key -> the program clicks at the current coordinates and moves cursor back to the stored coordinates.), or should I still try to code this myself? And if I should code it what language should I use? And some advice on what to google for or some links to more reading would be appreciated :)