Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <Windows.h>
- using namespace std;
- void leftdown()
- {
- PINPUT click = new INPUT;
- click->type = INPUT_MOUSE;
- click->mi.dx = 0;
- click->mi.dy = 0;
- click->mi.dwFlags = 0x2;
- click->mi.mouseData = 0;
- click->mi.time = 0;
- click->mi.dwExtraInfo = 0;
- SendInput(1,click,sizeof(INPUT));
- }
- void leftup()
- {
- PINPUT click = new INPUT;
- click->type = INPUT_MOUSE;
- click->mi.dx = 0;
- click->mi.dy = 0;
- click->mi.mouseData = 0;
- click->mi.time = 0;
- click->mi.dwExtraInfo = 0;
- click->mi.dwFlags = 0x4;
- SendInput(1,click,sizeof(INPUT));
- }
- void main()
- {
- Sleep(3000);
- while(1)
- {
- SetCursorPos(961, 840);
- Sleep(200);
- leftdown();
- Sleep(200);
- leftup();
- Sleep(3000);
- SetCursorPos(1521, 145);
- Sleep(200);
- leftdown();
- Sleep(200);
- leftup();
- Sleep(500);
- SetCursorPos(905, 556);
- Sleep(200);
- leftdown();
- Sleep(200);
- leftup();
- Sleep(2000);
- SetCursorPos(964, 597);
- Sleep(200);
- leftdown();
- Sleep(200);
- leftup();
- Sleep(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement