c# get mous position
using System.Runtime.InteropServices;
[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
[DllImport("user32.dll")]
public static extern bool GetCursorPos(out Point pos);
Point point = new Point();
GetCursorPos(out point);
SetCursorPos(1,1);