[Guide] How to remap keys in Beelzebub
Posted: 08 Mar, 2016 11:35
I was watching videos on Youtube of people playing the mod and noticed that many are manually selecting spells/skills by clicking because the F1...F8 buttons are hard to reach. Or, people clicking the inventory button instead of using the "I" hotkey for the same reason.
Well, there actually is a way to remap those keys conveniently, and it only takes a few minutes to set up. I'll now describe how to do so:
1) Google and download a program called "autohotkey". Install it.
2) After installing, right-click on your desktop and refresh it.
3) Right-click on your desktop again, then select New -> Autohotkey script.
4) Copy and paste the following code:
Now look at the last line. What it does is that the script ONLY runs when Diablo is active. That is, if you alt-tab out of the game, the script automatically pauses! So you don't have to do any manual actions - ever - once you've set it up. It's all completely automated.
5) Now, let's add some code that actually remaps a key. Let's say we want to change the inventory button from "I" to "B" (just an example). Add this line of code to the script:
What this means is that the "B" button becomes the same as "I". Note that the "I" button STILL has the same functionality as before, i.e. you now have two buttons on your keyboard that summon the inventory window! However, if you add this line...
...the "I" button now has the same functionality as "B" does. You remember that by default, "B" brings up the spellbook window. So after executing the script, your inventory and spellbook hotkeys have switched places.
6) Let's look at some more examples:
What does this do? Well, the first line of code makes the "Y" button do a weapon swap. The second line of code binds "W" to a spell hotkey ("F2" in this case). Another example:
This binds "R" to a spell hotkey ("F4" in this case) and then binds "F4" to mod settings.
7) After you've configured the script, save it with a relevant name (such as diablo.ahk or whatever) and double-click it. This will automatically start Autohotkey.
P.S. if the mods find this guide useful, could it maybe get sticky'ed?
Well, there actually is a way to remap those keys conveniently, and it only takes a few minutes to set up. I'll now describe how to do so:
1) Google and download a program called "autohotkey". Install it.
2) After installing, right-click on your desktop and refresh it.
3) Right-click on your desktop again, then select New -> Autohotkey script.
4) Copy and paste the following code:
Code: Select all
#NoEnv ;Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ;Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ;Ensures a consistent starting directory.
#IfWinActive, ahk_exe Belzebub.exe
Now look at the last line. What it does is that the script ONLY runs when Diablo is active. That is, if you alt-tab out of the game, the script automatically pauses! So you don't have to do any manual actions - ever - once you've set it up. It's all completely automated.
5) Now, let's add some code that actually remaps a key. Let's say we want to change the inventory button from "I" to "B" (just an example). Add this line of code to the script:
Code: Select all
b::i
Code: Select all
i::b
6) Let's look at some more examples:
Code: Select all
y::w
w::F2
Code: Select all
r::F4
F4::g
7) After you've configured the script, save it with a relevant name (such as diablo.ahk or whatever) and double-click it. This will automatically start Autohotkey.
P.S. if the mods find this guide useful, could it maybe get sticky'ed?