Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. [DllImport("User32.dll")]
  2. private static extern bool SetCursorPos(int x, int y);
  3.  
  4. [DllImport("user32.dll")]
  5. public static extern bool GetCursorPos(out System.Drawing.Point lpPoint);
  6. public static System.Drawing.Point GetCursorPosition()
  7. {
  8. System.Drawing.Point lpPoint;
  9. GetCursorPos(out lpPoint);
  10.  
  11. return lpPoint;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement