Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <Windows.h>
- int main()
- {
- int type;
- int sleep;
- bool on = false;
- std::cout << "write sleep";
- std::cin >> sleep;
- std::cout << "program sleeping " << sleep;
- on = true;
- while (on){
- while (GetAsyncKeyState(VK_RBUTTON))
- {
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(sleep);
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement