AutoHotKey script for quick saving.
How-To: One-Button Saving
All credit goes to Zyablik1989!
What Does It Do?
I wrote a script in AutoHotKey program, to help myself to save games with only One Button instead of 11 key-inputs. It Uses F5-hotkey and First save-slot. You can change it as you want, while script is editable. When you pressed F5 and script started to save game, you shouldn’t touch keyboard or mouse.
Instruction
- Install AutoHotKey program from official website (it’s free) (AutoHotKey_dot_com).
- Download script from link (Or create file with .ahk extension and copy a content from end of this guide into it).
- (Optional step) RMB on downloaded .ahk-file, Press “Edit Script”, and change F5 hotkey with any other key you want.
- RMB on downloaded file and press “Run Script” (You can see script is running, if capital “H” logo is present in Windows tray).
- Now while script is running and you are ingame and you see your character on the field, press F5, and script will automatically press 11 keys with delays between them and save your game on the first save slot. When you launch the script, you shouldn’t touch keyboard or mouse.
Script Contents
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;This is HotKey for saving. It's F5 by default, but you can change it.
;------------
F5::
;-------------
;Game recognizes keys that had been pressed and released with pause. That's why here are {KEY down} / {KEY up} expressions.
;Go to Main Menu
Send, {Esc down}
Sleep 13
Send, {Esc up}
Sleep 300
;Go to settings
Send, {Left down}
Sleep 13
Send, {Left up}
Sleep 300
Send, {Enter down}
Sleep 13
Send, {Enter up}
Sleep 300
;Go to Save Game and wait for them to appear
Send, {Enter down}
Sleep 13
Send, {Enter up}
Sleep 1000
;Select first save slot, confirm and wait a little
Send, {Enter down}
Sleep 13
Send, {Enter up}
Sleep 300
Send, {Up down}
Sleep 13
Send, {Up up}
Sleep 300
Send, {Enter down}
Sleep 13
Send, {Enter up}
Sleep 1500
;Back to game
Send, {Esc down}
Sleep 13
Send, {Esc up}
Sleep 700
Send, {Esc down}
Sleep 13
Send, {Esc up}
Sleep 700
Send, {Esc down}
Sleep 13
Send, {Esc up}
Sleep 700
Send, {Esc down}
Sleep 13
Send, {Esc up}
return
Be the first to comment