Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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.
- ;==========================================================================
- ; Description: This script is to help fix the issue of movement keys bound to non-numpad keys not behaving as smoothly in
- ; Elona+ and Elona+Custom (https://elona.fandom.com/wiki/Elona%2B and https://elona.fandom.com/wiki/Elona%2B_Custom)
- ; and is meant to be used with config.txt set so that wersdfxcv are used for movement like in https://pastebin.com/uiskMgdB
- ; but it should be easy to change it to work with a different configuration
- ; (This script requires AutoHotKey https://autohotkey.com/)
- ; *How to use:
- ; 1. Download autohotkey from https://autohotkey.com/
- ; 2. Install autohotkey,
- ; 3. Right click anywhere in your desired folder, navigate to new in context menu, Click AutoHotKey Script
- ; 4. Right click your New AutoHotKey Script and edit (notepad,notepad++,etc) copy this script and paste, edit according to the configuration below.
- ; 5. Rename to desired name, run as administrator, and enjoy
- ;
- ; ##Configuration##
- ; Below each action, you will find a set of two keyboard keys seperated by two colons, changing the key
- ; to the left of the colons will remap that key to that action. (yourbinding::default)
- ;==========================================================================
- #If WinActive("ahk_exe ElonaC.exe") ;Only allows the script to work when the game is active.
- ;==========================================================================
- Pause::suspend
- ;movement
- x::NumpadEnd
- v::NumpadPgDn
- d::NumpadClear
- w::NumpadHome
- r::NumpadPgUp
- e::NumpadUp
- s::NumpadLeft
- f::NumpadRight
- c::NumpadDown
- ;these make sure you can use shift for these instead of it making you run right away
- +x::X
- +v::V
- +d::D
- +r::R
- +w::W
- +e::E
- +s::S
- +f::F
- +c::C
- return
- ;copy paste for just elonaplus.exe since making an or statement for if winactive was hard
- ;==========================================================================
- #If WinActive("ahk_exe elonaplus.exe") ;Only allows the script to work when the game is active.
- ;==========================================================================
- Pause::suspend
- ;movement
- x::NumpadEnd
- v::NumpadPgDn
- d::NumpadClear
- w::NumpadHome
- r::NumpadPgUp
- e::NumpadUp
- s::NumpadLeft
- f::NumpadRight
- c::NumpadDown
- ;these make sure you can use shift for these instead of it making you run right away
- +x::X
- +v::V
- +d::D
- +r::R
- +w::W
- +e::E
- +s::S
- +f::F
- +c::C
- return
Add Comment
Please, Sign In to add comment