Advertisement
dllbridge

Interesting

Mar 29th, 2025
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1.  
  2. #include <windows.h>
  3. #include   <stdio.h>
  4.  
  5.  
  6.  
  7. /////////////////////////////////////////////////////////////////
  8. int main()                                                     //
  9. {
  10.    
  11.     POINT cursorPos;
  12.    
  13.     while(1)
  14.     {
  15.         GetCursorPos(&cursorPos);
  16.         printf("X: %ld, Y: %ld | ", cursorPos.x, cursorPos.y);
  17.        
  18.         if (GetAsyncKeyState(VK_LBUTTON)) printf("L_Click ");
  19.         if (GetAsyncKeyState(VK_RBUTTON)) printf("R_Click ");
  20.        
  21.         printf("\n");
  22.         Sleep (1000);              
  23.     }
  24.  
  25. return 0;
  26. }
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement