Hyper Light Drifter

Hyper Light Drifter

View Stats:
omniwyrd Oct 17, 2017 @ 6:43pm
Hyper Light Drifter Best Mouse Auto dash Macro AutoHotKey
I thought it was silly that there were so many variations of a macro that would execute 800 dashes yet I could not find one that would enable an auto dash from just holding down the dash key. I have my LMB bound to my dash and so I made this one to do the trick. It uses win + Esc or win + q to close or pause the script respectively because it is frustrating when when dealing with things outside HLD because LMB is rebound.

Mind you this makes dashing rather effortless during combat.
Bind any key (I used x) to dash as AHK does silly things with mouse buttons when it is being timed
Win + Esc Closes the script
Win + Q pauses the script
Holding LMB will dash until you let go of LMB

#Escape::
ExitApp

#q::Suspend

$LButton::
While GetKeyState("Lbutton","P")
{
SetKeyDelay, 130, 140
Send, x
}
Return

For those who just want a auto dash bound to spacebar
#Escape::
ExitApp

#q::Suspend


$SPACE::
While GetKeyState("SPACE","P")
{
SetKeyDelay, 130, 140
Send, x
}
Return

Hope this helps some people.
Last edited by omniwyrd; Oct 17, 2017 @ 9:12pm
Originally posted by drifter2019:
Thanks, it helped me, but the code does not work with the latest version of autohotkey. I have fixed it to work with the latest autohotkey. I also modified it to activate chain dash while "x" is being pressed. It assumes that dash is bound to space. "x" will only activate chain dash in the Hyper Light Drifter window.

#MaxHotkeysPerInterval 1200 #IfWinActive ahk_exe HyperLightDrifter.exe x:: While GetKeyState("x","P") { SetKeyDelay, 130, 140 Send, {Space} } Return
< >
Showing 1-15 of 16 comments
The author of this thread has indicated that this post answers the original topic.
drifter2019 May 23, 2018 @ 9:52am 
Thanks, it helped me, but the code does not work with the latest version of autohotkey. I have fixed it to work with the latest autohotkey. I also modified it to activate chain dash while "x" is being pressed. It assumes that dash is bound to space. "x" will only activate chain dash in the Hyper Light Drifter window.

#MaxHotkeysPerInterval 1200 #IfWinActive ahk_exe HyperLightDrifter.exe x:: While GetKeyState("x","P") { SetKeyDelay, 130, 140 Send, {Space} } Return
Last edited by drifter2019; May 23, 2018 @ 9:53am
leolarose798 Jun 24, 2018 @ 10:46pm 
Originally posted by drifter2019:
Thanks, it helped me, but the code does not work with the latest version of autohotkey. I have fixed it to work with the latest autohotkey. I also modified it to activate chain dash while "x" is being pressed. It assumes that dash is bound to space. "x" will only activate chain dash in the Hyper Light Drifter window.

#MaxHotkeysPerInterval 1200 #IfWinActive ahk_exe HyperLightDrifter.exe x:: While GetKeyState("x","P") { SetKeyDelay, 130, 140 Send, {Space} } Return
Hey can you tell me how i can i can modifiy this so it works with the Right mouse button instead and on fullscreen?
Last edited by leolarose798; Jun 24, 2018 @ 11:34pm
leolarose798 Jun 25, 2018 @ 5:21pm 
Originally posted by drifter2019:
Thanks, it helped me, but the code does not work with the latest version of autohotkey. I have fixed it to work with the latest autohotkey. I also modified it to activate chain dash while "x" is being pressed. It assumes that dash is bound to space. "x" will only activate chain dash in the Hyper Light Drifter window.

#MaxHotkeysPerInterval 1200 #IfWinActive ahk_exe HyperLightDrifter.exe x:: While GetKeyState("x","P") { SetKeyDelay, 130, 140 Send, {Space} } Return
Nevermind i figured it out
Nacnud Sep 19, 2018 @ 6:11pm 
Hey, I've downloaded autohotkey and copy-pasted the script into the file, what do I do now? How do I make it so that I can use it in-game?
MegaRaptor Nov 12, 2018 @ 5:03pm 
I have the same issue. I've used every AHK script I can find, and none of them seem to trigger any behavior at all in Hyper Light Drifter, although they work fine elsewhere. Is the game somehow preventing use of AHK?
omniwyrd Feb 9, 2019 @ 11:07pm 
Sorry fellas... Haven't had steam installed for a long time. I have forgotten how to use AHK. I recommend taking a look on AHK tutorials.
omniwyrd Feb 9, 2019 @ 11:08pm 
I remember something like generating an executable of the script and I would load that exe. But like I said, I don't remember. Hope this helps.
I am bread Aug 19, 2019 @ 9:29am 
Originally posted by drifter2019:
Thanks, it helped me, but the code does not work with the latest version of autohotkey. I have fixed it to work with the latest autohotkey. I also modified it to activate chain dash while "x" is being pressed. It assumes that dash is bound to space. "x" will only activate chain dash in the Hyper Light Drifter window.

#MaxHotkeysPerInterval 1200 #IfWinActive ahk_exe HyperLightDrifter.exe x:: While GetKeyState("x","P") { SetKeyDelay, 130, 140 Send, {Space} } Return
Thank you so mush! you are a legend
tsk12 Jun 29, 2020 @ 5:32am 
It works! You guys are marvelous!
icel Aug 5, 2021 @ 10:20pm 
None of these scripts work. Even the updated one... Does two slow dashes then hangs way too long for the third.
omniwyrd Aug 7, 2021 @ 3:44am 
I haven't used AHK for a long time. But I remember I had to tweak my script to act appropriately. I think depending on the computer, or perhaps the AHK version, timing can be a little off from machine to machine.

Perhaps you can experiment by altering the SetKeyDelay, 130, 140 values or something of the sort.

Sorry I can not recommend a known solution.

That said I will leave this thread here as it may help others to find something that works.
ursahascutepaws Jan 1, 2022 @ 12:02pm 
worked for me:

x::
{
SetKeyDelay, 150, 140
Send {SPACE 4}
SetKeyDelay, 130.5
Send {SPACE 1000}
}
Return
nalanaya Sep 17, 2022 @ 7:46pm 
So, since this thread is hopefully not dead, how do I get the hot key to execute in-game? I've got scripts that clearly work when tested on note-pads and such, but nothing seems to actually run in the game itself. And I am NOT accidentally ending the script with an ExitApp command.
nalanaya Sep 22, 2022 @ 12:00pm 
Right, I've tried all of the above scripts, and I've written my own using the basic Loop command. They all work on note-pad...and don't do anything in the game itself. Not failing because the timing is off, but failing to register the dash input is even 'pressed' at all, unless I physically do it. I have no idea why this is the case, as the game hasn't gotten any patches since before I first purchased and played it years ago, and I know for a fact that I got a script to run the first time I played, because I have the achievement. So I've gotta wonder, is this a Windows 10 thing? Or does the new version of AHK just not interact the same?

I'm going to face grim reality and grind manual attempts, but if someone more knowledgeable in the background processes has an answer, I'd be glad to hear it.
Zero Mar 23, 2023 @ 11:11pm 
It ended Up working for me!!!, Thank You :), although having to run the script through the run function on my computer is a bit confusing, nonetheless thank you guys, recovering from a recent wrist injuries made this achievement really hard to do the "normal" way!, Y'all are a lifesaver!
< >
Showing 1-15 of 16 comments
Per page: 1530 50