Jump to content
frghu

Does Autohotkey work in DayZ?

Recommended Posts

I've done a few searches and found some old cached posts of others claiming success with hotkeying autowalk. (from http://www.autohotkey.com/)

The scripts I'm using work normally in Arma 2: OA. They also work when running steam with the beta launch options if that makes any difference? However when running DayZ out of the Six Launcher, they do not work at all. Is there a step i'm missing somewhere to get these to work? Is it that it's multiplayer and blocked?

The constant stress of walking kilometers for long stretches holding down W with A/D for strafing and SHIFT for running with ALT for shoulder looking is a bit much for these manly hands of mine.

Here are a pair of scripts i've copied..if anyone can shed some light on the issue, would be appreciated!

Can't remember where i found this one:

$Up::

Toggle:=!Toggle

While (Toggle)

{

Send {up down}

Sleep 22

}

Send {up up}

Return

$Down::

Toggle:=!Toggle

While (Toggle)

{

Send {down down}

Sleep 22

}

Send {down up}

Return

$Right::

Toggle:=!Toggle

While (Toggle)

{

Send {right down}

Sleep 22

}

Send {right up}

Return

$Left::

Toggle:=!Toggle

While (Toggle)

{

Send {left down}

Sleep 22

}

Send {left up}

Return

From http://r.bernsteinbe...de_will_almost/

#NoEnv

#SingleInstance Force

#IfWinActive ahk_class ArmA 2 OA

Running = 0

Loop

{

IfWinExist, ahk_class ArmA 2 OA

{

WinSet, Style, -0xC40000, ahk_class ArmA 2 OA

WinMove, ahk_class ArmA 2 OA, , 0, 0, A_ScreenWidth, A_ScreenHeight

}

}

~`::

Gosub, ToggleRun

Return

ToggleRun:

if Running = 0

{

Send {w Down}

Running = 1

}

else

{

Send {w Up}

Running = 0

}

  • Like 1

Share this post


Link to post
Share on other sites

No game can block AHK or even AutoIt, your scripts may very well just be brokedededed.

I think this might work... replace NumPad1 with whatever key you want to toggle W for

This should be useful for toggling the ALT key aswell..

Though I cannot test right now :/

NumPad1::Send, {W Down}

NumPad1 UP::Send {W UP}

Share this post


Link to post
Share on other sites

I tried that out and it does work in arma2oa singleplayer, but in dayz for some reason it didn't work

Share this post


Link to post
Share on other sites

Ah, I figured it out. I had to run Autohotkey as an administrator. Now it all works just fine

Share this post


Link to post
Share on other sites

That first script in your first post is excellent. After a lot of Googling and experimenting with other scripts, I came across that, and it's just what I needed. My middle finger thanks you.

Edited by Mister_Magotchi

Share this post


Link to post
Share on other sites

My running script

F1 starts the run, pressing W manually stops it.

$F1::

loop

{

Send {w down}

if GetKeyState("w","P")

{

Send {w Up}

break

}

}

Edited by Paint13aller
  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×