Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <winuser.h>
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- int x=0, y=0, w=0, z=0, c;
- c = 0;
- while (c != 1000000)
- {
- mouse_event(MOUSEEVENTF_MOVE, x, y, w, z);
- POINT pt;
- GetCursorPos(&pt);
- x = pt.x;
- y = pt.y;
- line();
- cout << x << "," << y << endl;
- Sleep(1);
- int lastx = x;
- int lasty = y;
- x = 0;
- y = 0;
- c = c + 1;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement