DANMAKAI: Red Forbidden Fruit

DANMAKAI: Red Forbidden Fruit

Not enough ratings
Creating custom STG keyboard binds with AutoHotkey v2
By Faith
Hello! Many STG's like DANMAKAI: Red Forbidden Fruit do not give you the ability to configure your keyboard controls. This little guide will help you to rebind your keys using AutoHotkey v2 (AHK) to something you're more comfortable and familiar with!~
   
Award
Favorite
Favorited
Unfavorite
What To Do
I personally use the portable version of AutoHotkey v2 so that I don't need to install it and can thus run it only when required. You can download it here:

https://www.autohotkey.com/download/

Use the "Download ZIP" link to download and extract the portable version of AutoHotkey v2 to a convenient location of choice.

Important note: the example script I am providing will only work with AutoHotkey v2 and not v1 as the syntax is different. This script is confirmed to work on the latest version of AutoHotkey v2 as of the time of writing.

Because we'll be using the 64-bit version (AutoHotkey64.exe), you'll need to create a configuration file in the same directory of the executable named "AutoHotkey64.ahk" (you can use Notepad or any other plain-text editor you're familiar with, just make sure that the file extension ends in ".ahk" and that there isn't anything else behind it (e.g. ".txt")).

In the configuration file, paste the following:

SendMode "Event" ; ^-Required to prevent sticky keys when playing STG's #HotIf WinActive("ahk_exe Danmakai.exe") ; ^-Only apply this script to this specific executable 1::z 3::x 4::Shift i::Up k::Down j::Left l::Right

Characters to the left of the double colon are your desired keys for input, whereas those to the right are the game's defaults. For the sake of clarity I always use 1 for Shot, 2 for Special, 3 for Bomber, and 4 for Focus Shot (Danmakai doesn't have a Special though). Also, the very first line (SendMode "Event") is required to prevent a common issue with keys appearing stuck when using AHK which is particularly prevalent when AHK is tasked with mapping a rapid amount of simultaneous keystrokes.

After you've saved the configuration file, simply launch AutoHotkey64.exe and you should see a green "H" icon in your taskbar, indicating that AutoHotkey v2 has successfully launched.

And that's it! You should now be able to play DANMAKAI with your key binds of choice.

Some additional notes: if you need to change your configuration while AutoHotkey v2 is running, you either need to re-launch the application or right click on the green "H" icon in your taskbar and select "Reload Script." You'll also notice that this script was written to only apply to "Danmakai.exe" and if you wish to use it for any other game simply copy and paste the script from the "#HotIf WinActive" line onward while specifying the executable of the next game you wish to rebind your keyboard controls for.

As an example I will provide my full AutoHotkey v2 script here:

; ==================================================== ; Faith's AutoHotkey Script for Custom STG Key Binding ; ---------------------------------------------------- ; [1] Shot | [2] Special | [3] Bomber | [4] Focus Shot ; ==================================================== SendMode "Event" ; ^-Required to prevent sticky keys when playing STG's #HotIf WinActive("ahk_exe Application.exe") ; ^-Only apply this script to this specific executable ; ---[Danmakai: Red Forbidden Fruit]------------------ ; Notes: None! Yay!~ #HotIf WinActive("ahk_exe Danmakai.exe") 1::z 3::x 4::Shift i::Up k::Down j::Left l::Right ; ---[Danmaku Unlimited 3]---------------------------- ; Notes: Danmaku only allows you to remap the shot and ; special keys, not directional input. Esc also forces ; the game to close without warning instead of pausing #HotIf WinActive("ahk_exe DU3.exe") 1::z 3::c 4::x i::Up k::Down j::Left l::Right p::Esc Esc::p ; ---[Gunvein]---------------------------------------- ; Notes: Gunvein allows custom key binding but it does ; not apply to the in-game menu, only your ship. Which ; makes it very confusing when navigating between them #HotIf WinActive("ahk_exe Gunvein.exe") 1::Space 3::c 4::x i::Up k::Down j::Left l::Right ; ---[RefRain: Prism Memories]------------------------ ; Notes: "2::x" = M.E.F.A2 .. "3::c" = Concept Reactor #HotIf WinActive("ahk_exe RefRain.exe") 1::z 2::x 3::c 4::Shift i::Up k::Down j::Left l::Right ; ====================================================

The "#HotIf WinActive" directive will only apply to parameters below it until a new "#HotIf WinActive" directive is supplied. You can thus configure as many games as you wish within a single script! You can typically find the name of the executable of your game by right-clicking on the game in Steam, selecting "Manage," and "Browse local files." Most of the time the executable should be right there, or when in doubt, just use the Windows Task Manager to find its name and path while the game is running.

I hope you find this little guide helpful! Happy shmupping! May STG's Never Die!~

<3