Mouse positioning inside a window

Hi,

I already am able to move the cursor to any position within my screen but I would like to be able to only move the cursor relative to the program.

Example would be if I had a calculator open in the bottom left of my screen i could set the mouse position to the opposite bottom right of the screen, how do I I only move the mouse to the bottom right of the calculator ?

closed account (Dy7SLyTq)
if its console, ncurses or pdcurses
if its gui on windows, im sure there is something in the windows api
if its a *nix gui there is probably something in sfml or a library
Sorry forgot to say its on visual studio and the application im trying to move the mouse within is a custom form. I have the clicks down etc and everything I need when I control the mouse manually just not sure how to set the co-ordinates to only be within that form :\
Last edited on
Topic archived. No new replies allowed.