Vampire Survivors Quick Restart Using Autohotkey Using Macro

Vampire Survivors Quick Restart Using Autohotkey Using Macro 1 - steamsplay.com
Vampire Survivors Quick Restart Using Autohotkey Using Macro 1 - steamsplay.com

An AutoHotkey keyboard macro to quickly restart your run with the same character, area, and arcana. Useful when experimenting with the game, trying to unlock Toastie, or speedrunning for gold.
 
 

Instructions

  1. Download and install AutoHotkey, if you haven’t already, available here – [autohotkey.com] .
  2. Create a new text file and name it anything you want, but with a .ahk extension.
  3. Copy/paste the script in the next section to this new file and save it.
  4. Right-click the file and select Run Script from the context menu.

 
The script is now running and ready to be executed.
 
 
While in the game, outside of any menu, press the Home key on your keyboard to quit the current game and start a new run with the same character, area, and arcana.
 
 
Occasionally the macro will not execute. This can happen if you hit the macro keyboard key immediately after coming out of an in-game menu, like after gaining a level. Just move the character a few steps in any direction before pressing the macro key again and it will work. The reason is that the game does not buffer keyboard input, and menu animations take time to complete before the game accepts new input.
 
 
Important! Read also the Notes section below in case it answers any of your questions.
 
 
 

Script

#SingleInstance force
#NoEnv
#Warn

SendMode Event
SetKeyDelay 200, 100

#IfWinActive ahk_exe VampireSurvivors.exe

Home:: ; macro to restart a run
 Send {Escape}{Left}{Space}{Left}{Space 2}
 Sleep 1000 ; home screen animation
 Send {Space 6}
 Sleep 500 ; arcanas animation
 Send {Space}
return

 
 
 

Notes

  • Any changes you do to the script will require you to reload it by right-clicking the AutoHotkey icon in your Windows taskbar.
  • If you don’t like to use the Home key, you can replace it in Line 10 of the script with something else. Use this key naming guide – [autohotkey.com]  to help you with that.
  • Due to the way Vampire Survivors captures keyboard input, a small delay is necessary between keystrokes (this is also why we can’t use the Input send method with this game). The current input delay set in Line 6 of the script should work for everyone. But if you have problems, try to increase both numbers in increments of 50.
  • If you want the script to always stop on the Arcanas screen, delete Lines 14 and 15. You can keep those lines if you are not using Arcanas in your run, since the extra Spacebar input event on Line 15 will be ignored by the game.

 
 

Written by Marfig

 
 
Here we come to an end for Vampire Survivors Quick Restart Using Autohotkey Using Macro hope you enjoy it. If you think we forget something to include or we should make an update to the post let us know via comment, and we will fix it asap! Thanks and have a great day!
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*