永遠消失的幻想鄉 ~ The Disappearing of Gensokyo

永遠消失的幻想鄉 ~ The Disappearing of Gensokyo

评价数不足
Rebinding controls with AutoHotKey
由 tsuneko 制作
How to rebind controls to keys which are currently unallowed by the game (eg. WASD are reserved for movement only).
   
奖励
收藏
已收藏
取消收藏
Getting Started with AutoHotKey
AutoHotKey (AHK) is a free keyboard macro program for Windows which supports hotkeys for keyboard, mouse and joystick. Download and installation instructions can be found on its official website[autohotkey.com].

We are going to use AHK for the purpose of rebinding controls since currently the game does not support complete key remapping and also reserves particular keybindings.

Will this get you VAC Ban?
Hell no. Anyone with a proper understanding of process signature scanning will tell you the same. I wouldn't recommend leaving AutoHotKey open with other more intrusive Anti-Cheat services (such as BattlEye, ESEA) though.
AutoHotKey Script
Once you have AHK installed, create a new file named something along the lines of touhou-rebinds.ahk. Inside this file, customise this code:

#CommentFlag // #IfWinActive The Disappearing of Gensokyo // Movement w::w // Up a::a // Left s::s // Down d::d // Right space::space // Dash // Combat RButton::RButton // Side Attack g::g // Bomb // General e::e // Interact tab::tab // Switch Character z::z // Change Viewport #IfWinActive // Stop Script End::ExitApp

In each rebind (eg. w::w) the first character is the key which you want to bind to. Thus, if we wanted to change WASD to arrow keys, we use this:
Up::w Left::a Down::s Right::d

See AHK's KeyList[autohotkey.com] to see the full list of rebindable keys.

To run the script, simply right click it and click "Run Script".

Within the script, we have "ExitApp" bound to a key. Pressing this key at any stage will close the AHK script.