__zero__

cursor position v2

Nov 16th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     while(true){
  7.         POINT cursor;
  8.         GetCursorPos(&cursor);
  9.         cout << "X: " << cursor.x << " Y: " << cursor.y << endl;
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment