Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //So many includes for so little code? I think not
- #include <iostream>
- #include <windows.h>
- int main()
- {
- while (1) {
- if (GetAsyncKeyState(VK_XBUTTON2) & 0x8000) {
- std::cout << "hi" << std::endl;
- Sleep(1);
- mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);
- Sleep(1);
- mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
- }
- Sleep(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement