SteveT79 Posted January 28, 2020 Share Posted January 28, 2020 Trying to get AutoHotKey to remap some keys for Streets of Rage Remake and having no luck. Anyone here an expert on AHK? I'm a noob at AHK, not sure the difference between AHK_class or AHK_exe, tried both neither work. #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. #SingleInstance force run,SorR.exe #IfWinActive AHK_class "Streets of rage Remake" ; Shift::X W::J Z::C I::K X::V K::L LCtrl::A A::I LAlt::S S::O Space::D Q::P C::B J::H Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted January 28, 2020 Share Posted January 28, 2020 Try using this line #IfWinActive ahk_exe sorr.exe Quote Link to comment Share on other sites More sharing options...
SteveT79 Posted January 29, 2020 Author Share Posted January 29, 2020 Tried that but still no go. Something strange goes on with sorr.exe where it opens a console window as well which may be confusing AHK? I had a similar issue with another game requiring administrative rights. Once I disabled admin rights on that game it worked fine. Quote Link to comment Share on other sites More sharing options...
SteveT79 Posted January 29, 2020 Author Share Posted January 29, 2020 ? ok... turns out that the script is ... case sensitive haha ... well obviously. It was remapping the keys that were control keys but not letter keys. Changed all to lowercase and it works now. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.