-
-
Save munenedenis/72e83744a92396bdafb0 to your computer and use it in GitHub Desktop.
Script to enable autorun for 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
; 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment