Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- /////////////////////////////////////////////////////////////////
- int main() //
- {
- POINT cursorPos;
- while(1)
- {
- GetCursorPos(&cursorPos);
- printf("X: %ld, Y: %ld | ", cursorPos.x, cursorPos.y);
- if (GetAsyncKeyState(VK_LBUTTON)) printf("L_Click ");
- if (GetAsyncKeyState(VK_RBUTTON)) printf("R_Click ");
- printf("\n");
- Sleep (1000);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement