Cosmic Star Heroine

Cosmic Star Heroine

Not enough ratings
Key remapping via AutoHotKey
By Wild_Genius
A simple remapping guide with an example WASD+Mouse script included.
2
   
Award
Favorite
Favorited
Unfavorite
Installation
  1. Download and install AHK as described in the official tutorial[autohotkey.com].
  2. Go to where you installed AHK, right click AutoHotkey.exe, go to the compatibility tab, set "Run this program as administrator" to true.
Keys map
Here are the default and unchangeable controls for reference:


Here is the AHK key list if you wish to change some hotkeys in the provided script.[autohotkey.com]
The Script Itself
Press right click where you would like your script to be stored (I'd recommend the desktop for ease of launching), go to New - AutoHotkey Script, name the file whatever you like, open it in your favourite text editor and overwrite the contents with the following:
#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 AHK_exe CSH.exe ; The hotkeys will only work when the game is in focus w::Up ; Remapping movement, returns are implicit in a single line hotkey, left in for clarity and separation Return a::Left ; Remapping movement Return d::Right ; Remapping movement Return s::Down ; Remapping movement Return LButton::z ; Remapping confirm to left mouse button Return Rbutton::x ; Remapping cancel/run to right mouse button Return XButton1:: ; remapping tab left to mouse back or q q:: Send {a} Return XButton2:: ; remapping tab right to mouse forward or e e:: Send {s} Return ; Your Key Here::Tab ; Remap the game menu button if you like Return ; Your Key Here::Esc ; Remap the quit menu button if you like Return

Save the file, double click it and enjoy reasonable PC controls!
Further AHK reading
The AHK documentation[autohotkey.com] is quite robust and the forums[autohotkey.com] are quite helpful.

My text editor of choice is Notepad ++[notepad-plus-plus.org] with the AHK syntax highlighter and autocompleter by jNizM[github.com].

Thank you for reading and let's hope for native controls rebinding in a PC game!
4 Comments
Wild_Genius  [author] 10 May, 2024 @ 4:44am 
Sure, that's absolutely fine - the code is textbook AHK, just with game-specific keys and exe. I appreciate the citation, but your edits are expansive enough to make your script count as its own thing!
pex 9 May, 2024 @ 8:41pm 
i hope you don't mind, i used your code as basis to create one for another game, i properly credited you as the main creator and added that i merely edited the script
https://cs2bus.com/app/1996010/discussions/0/4365754151472990186/
Wild_Genius  [author] 29 Feb, 2024 @ 3:39am 
You're welcome! Note that if you have any extra buttons on your mouse or keyboard, you have to use the manufacturer's app for remapping, as AHK can't access those.
pex 26 Feb, 2024 @ 12:01am 
not only did it work on this game but i also used your guide for other games as well and it works AMAZINGLY, THANK YOU :steamthumbsup: