Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <dos.h>
- #include <windows.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- POINT pozycjaa;
- getchar(); /to jest po to żeby dać enter jak ustawisz kursor tam gdzie chcesz
- GetCursorPos(&pozycjaa);
- SetCursorPos(pozycjaa.x,pozycjaa.y); // tak zmieniasz na tą pozycje
- int x = 0;
- while(x!= 194)
- {
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0); //naciskasz lewy przycisk myszy
- sleep(100);
- mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0); // 'odciskasz' lewy przycisk myszy
- x++;
- }
- getchar();
- cin.ignore();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement