Skip to content

Instantly share code, notes, and snippets.

@SakiiR
Created August 31, 2018 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SakiiR/86aeaf91884fb4d3c5d90dd37c0a5e33 to your computer and use it in GitHub Desktop.
Save SakiiR/86aeaf91884fb4d3c5d90dd37c0a5e33 to your computer and use it in GitHub Desktop.
Autorun Dayz
// 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