Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. //* CSGO_RAPIDFIRE *//
  2. //" RECURSIVE *//
  3.  
  4. #include <iostream>
  5. #include <windows.h>
  6.  
  7. void RF (bool trueORfalse){
  8. while(trueORfalse == true && !GetAsyncKeyState(0x02)){ // checks if 'true' or 'false' was sent + RBUTTON
  9.  
  10. if (GetAsyncKeyState(0x01)) {
  11. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // simulates mouse press
  12. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); // simulates mouse release
  13. Sleep(200);
  14. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // simulates mouse press
  15. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); // simulates mouse release
  16. Sleep(200);
  17. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // simulates mouse press
  18. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); // simulates mouse release
  19. Sleep(200);
  20. }
  21.  
  22. }
  23. }
  24.  
  25. int main()
  26.  
  27. {
  28.  
  29. std :: cout << "CSGO EXTERNAL RAPIDFIRE 7/5/2015 -BY RECURSIVE-" << "\n\n\n";
  30. std :: cout << "LEFT MOUSE CLICK TO TURN ON" << "\n\n\n";
  31. std :: cout << "RIGHT MOUSE CLICK TO TURN OFF" << "\n\n\n";
  32.  
  33. while (true) { // infinite loopcheck
  34.  
  35. if (GetAsyncKeyState(0x01)) { // cheks if "LBUTTON" was pressed
  36.  
  37. std :: cout << "RAPIDFIRE :: ON" << std :: endl;
  38. RF(true); // signals to bool -- true
  39. }
  40. else
  41. if (GetAsyncKeyState(0x02)){ // checks if "RBUTTON" was pressed
  42.  
  43. std :: cout << "RAPIDFIRE :: OFF" << std :: endl;
  44. RF(false); // signals to bool -- false
  45. }
  46.  
  47. }
  48.  
  49. return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement