Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <windows.h>
  2. #include <winuser.h>
  3. #include <iostream>
  4. #include <conio.h>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10. int x=0, y=0, w=0, z=0, c;
  11. c = 0;
  12.  
  13. while (c != 1000000)
  14. {
  15. mouse_event(MOUSEEVENTF_MOVE, x, y, w, z);
  16. POINT pt;
  17. GetCursorPos(&pt);
  18. x = pt.x;
  19. y = pt.y;
  20. line();
  21. cout << x << "," << y << endl;
  22. Sleep(1);
  23. int lastx = x;
  24. int lasty = y;
  25. x = 0;
  26. y = 0;
  27. c = c + 1;
  28. }
  29. system("pause");
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement