CumK

elona moveonly.ahk

Mar 26th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. ;==========================================================================
  6. ; Description: This script is to help fix the issue of movement keys bound to non-numpad keys not behaving as smoothly in
  7. ; Elona+ and Elona+Custom (https://elona.fandom.com/wiki/Elona%2B and https://elona.fandom.com/wiki/Elona%2B_Custom)
  8. ; and is meant to be used with config.txt set so that wersdfxcv are used for movement like in https://pastebin.com/uiskMgdB
  9. ; but it should be easy to change it to work with a different configuration
  10. ; (This script requires AutoHotKey https://autohotkey.com/)
  11. ; *How to use:
  12. ; 1. Download autohotkey from https://autohotkey.com/
  13. ; 2. Install autohotkey,
  14. ; 3. Right click anywhere in your desired folder, navigate to new in context menu, Click AutoHotKey Script
  15. ; 4. Right click your New AutoHotKey Script and edit (notepad,notepad++,etc) copy this script and paste, edit according to the configuration below.
  16. ; 5. Rename to desired name, run as administrator, and enjoy
  17. ;
  18. ; ##Configuration##
  19. ; Below each action, you will find a set of two keyboard keys seperated by two colons, changing the key
  20. ; to the left of the colons will remap that key to that action. (yourbinding::default)
  21. ;==========================================================================
  22. #If WinActive("ahk_exe ElonaC.exe") ;Only allows the script to work when the game is active.
  23. ;==========================================================================
  24. Pause::suspend
  25.  
  26. ;movement
  27. x::NumpadEnd
  28. v::NumpadPgDn
  29. d::NumpadClear
  30. w::NumpadHome
  31. r::NumpadPgUp
  32.  
  33. e::NumpadUp
  34. s::NumpadLeft
  35. f::NumpadRight
  36. c::NumpadDown
  37.  
  38. ;these make sure you can use shift for these instead of it making you run right away
  39. +x::X
  40. +v::V
  41. +d::D
  42. +r::R
  43. +w::W
  44.  
  45. +e::E
  46. +s::S
  47. +f::F
  48. +c::C
  49.  
  50. return
  51.  
  52. ;copy paste for just elonaplus.exe since making an or statement for if winactive was hard
  53. ;==========================================================================
  54. #If WinActive("ahk_exe elonaplus.exe") ;Only allows the script to work when the game is active.
  55. ;==========================================================================
  56. Pause::suspend
  57.  
  58. ;movement
  59. x::NumpadEnd
  60. v::NumpadPgDn
  61. d::NumpadClear
  62. w::NumpadHome
  63. r::NumpadPgUp
  64.  
  65. e::NumpadUp
  66. s::NumpadLeft
  67. f::NumpadRight
  68. c::NumpadDown
  69.  
  70. ;these make sure you can use shift for these instead of it making you run right away
  71. +x::X
  72. +v::V
  73. +d::D
  74. +r::R
  75. +w::W
  76.  
  77. +e::E
  78. +s::S
  79. +f::F
  80. +c::C
  81.  
  82. return
Add Comment
Please, Sign In to add comment