Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <dos.h>
  2. #include <windows.h>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10. POINT pozycjaa;
  11. getchar();  /to jest po to żeby dać enter jak ustawisz kursor tam gdzie chcesz
  12. GetCursorPos(&pozycjaa);
  13. SetCursorPos(pozycjaa.x,pozycjaa.y); // tak zmieniasz na tą pozycje
  14.  
  15. int x = 0;
  16. while(x!= 194)
  17. {
  18. mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0); //naciskasz lewy przycisk myszy
  19. sleep(100);
  20. mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0); // 'odciskasz' lewy przycisk myszy
  21. x++;
  22. }
  23.  
  24. getchar();
  25. cin.ignore();
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement