Skip to content

Instantly share code, notes, and snippets.

@henkman
Created July 13, 2012 22:07
Show Gist options
  • Save henkman/3107859 to your computer and use it in GitHub Desktop.
Save henkman/3107859 to your computer and use it in GitHub Desktop.
Script to enable autorun for Dayz
; Autorun script for dayz
; Press HOME key once to start running
; Press END key to stop running
#include <Misc.au3>
Const $startRunning = "24"
Const $stopRunning = "23"
Local $user32 = DllOpen("user32.dll")
While True
If _IsPressed($startRunning, $user32) Then
While _IsPressed($startRunning, $user32)
Sleep(100)
WEnd
Send("{w down}")
ElseIf _IsPressed($stopRunning, $user32) Then
While _IsPressed($stopRunning, $user32)
Sleep(100)
WEnd
Send("{w up}")
EndIf
Sleep(100)
WEnd
@kungfulemon
Copy link

Hey, could you tell me how to implement this? Where do I use this code? :3 in an ini file somewhere?

@henkman
Copy link
Author

henkman commented Jul 20, 2012

You need the AutoIt scripting language to run it: http://www.autoitscript.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment