Moving pointer

I'm quite new to programming and wondering if anyone can help.
I'm looking for a basic c++ program to run and display the co-ordinates of the cursor (I presume in pixels).

I've seen programmes that will move the cursor in characters (new lines, spaces, etc) but wanting to have control of the mouse through keypad input...

I would like to see cursor position, enter in values to add to the position, for example, move in x & y (-350, 620) which will move 350 units (pixels?) left and 620 down.

Is there a way to do this and then to make the mouse click to perform an action?

Many thanks
Last edited on
If you're using windows, you need GetCursorPos and SetCursorPos functions.
Topic archived. No new replies allowed.