Advertisement
allen343434

Untitled

Oct 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
  2. public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, uint dwExtraInfo);
  3.  
  4. private const int MOUSEEVENTF_LEFTDOWN = 0x02;
  5. private const int MOUSEEVENTF_LEFTUP = 0x04;
  6. void Click()
  7. {
  8. mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement