desumoyo Posted March 14, 2017 Share Posted March 14, 2017 Hello, Looking at the application, I can easily find how to define a global autohotkey script for every Windows games, but can't find a way to define a specific one to a specific game, is it possible? if yes, how? Thanks Quote Link to comment Share on other sites More sharing options...
ckp Posted March 15, 2017 Share Posted March 15, 2017 Yes, you can right click each game and Edit. There will be an additional apps tab where you can specify a script, exe, or anything else to run before and/or after the game. Quote Link to comment Share on other sites More sharing options...
JaysArcade Posted March 15, 2017 Share Posted March 15, 2017 I think he means the built in autohotkey that is available in Launchbox. It is available in emulator setup but not on a per game setup. The emulator setup has a tab where you can directly enter an autohotkey script. Per game setup doesn't have this tab but it would be extremely helpful. I opened a ticket for this a while back. As you explained, you can create an autohotkey file and compile it as an exe and run that as an additional app to run before or after launching the game. It works, but its not as straightforward as editing an autohotkey script right in the game setup screen could be. If you think this should get some attention, vote on the ticket below. https://bitbucket.org/jasondavidcarr/launchbox/issues/1446/autohotkey-on-a-per-game-basis 3 Quote Link to comment Share on other sites More sharing options...
arbitrarymoniker Posted April 20, 2019 Share Posted April 20, 2019 Hi guys, I've spent like half a day on this so wanted to share my learns for how to do individual scripts. link here: https://www.autohotkey.com/boards/viewtopic.php?f=18&t=63827&p=273602#p273602 method one #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. Run, openliero.exe #IfWinActive AHK_exe openliero.exe ; ; Player1 ;KeyPressed::KeyItThinksIPressed w::Up ;when pressing the W key, the game registers that up was hit instead a::Left s::Down d::Right LControl::Enter ;shoot ;Escape key 5::Escape 6::Esc ; Player2 #IfWinNotExist ahk_exe E:\Windows\Liero 1.36\openliero.exe ; w:: send w Exitapp return s:: send s exitapp return a:: send a exitapp return d:: send d exitapp return LControl:: send ^ exitapp return 5:: send 5 exitapp return 6:: send 6 exitapp return method two #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. Run, openliero.exe #Persistent ;only exits on an exitapp command WinWait, ahk_exe openliero.exe, , 5 SetTimer, CheckForWindow, 5000 ; check every 5 seconds #IfWinActive AHK_exe openliero.exe ; ; Player1 ;KeyPressed::KeyItThinksIPressed w::Up ;when pressing the W key, the game registers that up was hit instead a::Left s::Down d::Right LControl::Enter ;shoot ;Escape key 5::Escape 6::Esc ; Player2 CheckForWindow: IfWinNotExist, ahk_exe openliero.exe { ExitApp Return } Still trying to figure out the best method, but hoping this helps others that find this thread. both confirmed working. 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.