Advertisement
Jarxay

Untitled

Mar 23rd, 2022 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //So many includes for so little code? I think not
  2. #include <iostream>
  3. #include <windows.h>
  4.  
  5. int main()
  6. {
  7. while (1) {
  8. if (GetAsyncKeyState(VK_XBUTTON2) & 0x8000) {
  9. std::cout << "hi" << std::endl;
  10. Sleep(1);
  11. mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);
  12. Sleep(1);
  13. mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
  14. }
  15.  
  16. Sleep(1);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement