Posted April 05, 2019
Here's an autohotkey script that will press the corresponding numpad keys for you when you press WASDQE on your keyboard. Enables you to play Lands of Lore on ScummVM with the comfortable WASD hand position.
Instructions:
- Install Autohotkey
- Copy this script in a file ending in .ahk
- Double-click your script to load it. You'll see an autohotkey icon in your tray.
- The script's hotkeys activate only when a window with Lands of Lore in the title run by the ScummVM executable is active.
The code:
#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.
#IfWinActive Lands of Lore: The Throne of Chaos ahk_exe scummvm.exe
q::Send {Numpad7}
w::Send {Numpad8}
e::Send {Numpad9}
a::Send {Numpad4}
s::Send {Numpad5}
d::Send {Numpad6}
#IfWinActive
The remapping can get annoying when you're trying to type a savegame name that includes one of the mapped letters, but I've found that hitting Ctrl-A bypasses the mappings and types A into the save name.
Instructions:
- Install Autohotkey
- Copy this script in a file ending in .ahk
- Double-click your script to load it. You'll see an autohotkey icon in your tray.
- The script's hotkeys activate only when a window with Lands of Lore in the title run by the ScummVM executable is active.
The code:
#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.
#IfWinActive Lands of Lore: The Throne of Chaos ahk_exe scummvm.exe
q::Send {Numpad7}
w::Send {Numpad8}
e::Send {Numpad9}
a::Send {Numpad4}
s::Send {Numpad5}
d::Send {Numpad6}
#IfWinActive
Post edited April 05, 2019 by WereSquirrel