Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // NoRecoilR6.cpp : définit le point d'entrée pour l'application console.
- //
- #include <cstdlib>
- #include "stdafx.h"
- #include <windows.h>
- #include <tlhelp32.h>
- #include <string>
- #include <iostream>
- using namespace std;
- bool keyDown(int vcode) {
- return GetAsyncKeyState(vcode) & ~32767;
- }
- int main(void) {
- int x = 10;
- int xprime = -10;
- int y = -9;
- int yprime = 9;
- while (true)
- {
- cout << x << endl;
- cout << y;
- if (keyDown(2))
- {
- while (keyDown(2))
- {
- if (keyDown(1))
- {
- while (keyDown(1))
- {
- mouse_event(MOUSEEVENTF_MOVE, y, x, 0, 0);
- Sleep(17);
- mouse_event(MOUSEEVENTF_MOVE, yprime, xprime, 0, 0);
- Sleep(10);
- }
- }
- }
- }
- system("cls");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement