Created
August 31, 2018 19:55
-
-
Save SakiiR/86aeaf91884fb4d3c5d90dd37c0a5e33 to your computer and use it in GitHub Desktop.
Autorun Dayz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ToggleRun.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
int main() | |
{ | |
bool activated = true; | |
printf("--== SakiiR Auto gambadeur ==--\n"); | |
while (1) | |
{ | |
if (GetAsyncKeyState(VK_INSERT) & 0x8000) | |
{ | |
while (GetAsyncKeyState(VK_INSERT) & 0x8000) | |
; | |
if (activated) | |
{ | |
keybd_event(VkKeyScan('Z'), 17, 0, 0); | |
keybd_event(VK_LSHIFT, 42, 0, 0); | |
printf("Let's RUN :)\n"); | |
} | |
else | |
{ | |
keybd_event(VkKeyScan('Z'), 17, KEYEVENTF_KEYUP, 0); | |
keybd_event(VK_LSHIFT, 42, KEYEVENTF_KEYUP, 0); | |
} | |
activated = !activated; | |
} | |
} | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment