WilliamHarlow

Click Counter

Nov 11th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. using namespace std;
  4. int ClickCounter
  5.  
  6.  
  7.  
  8. void Clicked() {
  9. if(GetAsyncKeyState(VK_LBUTTON)) {
  10. ClickCounter + 1;
  11. cout << " ";
  12. cout << ClickCounter;
  13. cout << ",";
  14.  
  15. }
  16.  
  17. }
  18.  
  19. void Toggler() {
  20. if(GetAsyncKeyState(0x4A))
  21. Clicked();
  22. }
  23.  
  24.  
  25.  
  26. int main()
  27.  
  28.  
  29.  
  30. {
  31. while(1=!0) {
  32.  
  33. Toggler();
  34.  
  35. }
  36.  
  37.  
  38.  
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment