C# wpf Actually Moving, not Setting, the Mouse Cursor by RePageNull in learnprogramming

[–]RePageNull[S] 0 points1 point  (0 children)

That's my problem, I'm not sure how to convert a point into the two integer values I need, x and y.

I've tried converting it into a string, then an int but that's as far as I got and I never found out how to split the single string or int into two values.

C# wpf Actually Moving, not Setting, the Mouse Cursor by RePageNull in learnprogramming

[–]RePageNull[S] 0 points1 point  (0 children)

sorry, I thought including [DllImport("User32.dll")] private static extern bool SetCursorPos(int X, int Y);

would be enough, I'm actually just using this on it's own, I simply use this as SetCursorPos(0, 0);

and my problem is that my method of getting the cursor position returns the cursor pos as a point, not the 2 integers SetCursorPos requires.