Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <conio.h>
- #include <Windows.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- bool check = false;
- cout << "F11-Stop\nF10-Start";
- while (true)
- {
- if (GetAsyncKeyState(VK_F10) && check==false)
- {
- check = true;
- }
- if (check == true)
- {
- mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
- Sleep(9);
- }
- if (GetAsyncKeyState(VK_F11) && check == true)
- {
- check = false;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement