public bool Move(int X, int Y) { Point pt = new Point(1, 1); Rectangle bounds = Screen.GetBounds(pt); if ((X <= bounds.Width) & (Y <= bounds.Height)) { MouseStuff.SetCursorPos(X, Y); return(true); } return(false); }