Retro808 Posted February 8, 2021 Share Posted February 8, 2021 22 minutes ago, CtinD said: I think there's a bit of confusion. I only posted that here and no other place on this site. I then went over to the main AutoHotKey forums site and asked there. It is super cringe for me creating new threads and double posting, so I avoid it at all costs. No confusion. You posted the same question in the thread here. It is not a big issue to worry over. We are not overt sticklers to rules here, we do like to keep posts for same questions to a minimum though. 1 Quote Link to comment Share on other sites More sharing options...
LegzRwheelz Posted February 8, 2021 Share Posted February 8, 2021 27 minutes ago, Retro808 said: No confusion. You posted the same question in the thread here. It is not a big issue to worry over. We are not overt sticklers to rules here, we do like to keep posts for same questions to a minimum though. See my last line? I was so tired last night. I legitimately thought i was messaging a friend on here. I apologize and have deleted that post. I really have no idea how I managed to do that. 1 Quote Link to comment Share on other sites More sharing options...
Jayinem Posted February 8, 2021 Share Posted February 8, 2021 (edited) 5 hours ago, JoeViking245 said: You could probably write a script to check it (and possibly reconnect it). But you'd be much better off fixing the underlying issue. I guess I could but 2.0 speeds suck. Couldn't it even effect newer games? I have 2021 games on it. It does sound like this is likely the issue though, what a bunch of bs another thing broken on Windows 10. Edited February 8, 2021 by Jayinem Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 8, 2021 Share Posted February 8, 2021 @Jayinem Ya, I was thinking more along the lines of type that into a Google search and see what comes up. The 2.0 vs 3.0 thing just happened to have gotten caught in the snapshot. Am pretty sure there are several other things listed to check. 1 Quote Link to comment Share on other sites More sharing options...
Gerald Posted February 9, 2021 Share Posted February 9, 2021 I created a little script with AutoHotKey to be able to quit Raiden IV using the Esc key. and I took the opportunity to modify the z and x keys: #SingleInstance, Off Esc :: F2 LCtrl :: z Alt :: x return Everything works, but the script remains open after closing Raiden IV. How to close the script at the same time as the game (Raiden IV: Overkill). Small precision, the script is compiled in .exe thank you ? Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 9, 2021 Share Posted February 9, 2021 LCtrl:: z Alt:: x $Esc:: { Send, {F2} ExitApp } "ExitApp" will close the script after it 'presses' F2 [to close Raiden]. You probably don't need nor want to have "#SingleInstance, Off". Thought it shouldn't be an issue because of "ExitApp", if something weird were to happen, you wouldn't want it running 2 (or more) instances. If you're adamant about having something there, I'd recommend using "#SingleInstance, Force" instead. Quote Link to comment Share on other sites More sharing options...
Gerald Posted February 9, 2021 Share Posted February 9, 2021 Thank you, but I would like to keep the "Esc" key instead of "F2" to quit Raiden IV, because I'm on an arcade machine and I don't have an "F2" button Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 9, 2021 Share Posted February 9, 2021 @Gerald You kinda said (and your script shows) that you remapped the Escape key to F2. (Just like you remapped Alt to x) I assumed F2 was what you pressed to quit Raiden [if a keyboard were connected]. As in, you press Escape (or the equivalent button on your cab) and it sends F2 to the game to exit it. So if you were playing the game, and say you did have a keyboard, what would you press to quit the game? Or did you not mean to remap the Escape key and pressing it actually exits the game already? Quote Link to comment Share on other sites More sharing options...
Gerald Posted February 9, 2021 Share Posted February 9, 2021 @ JoeViking245, no, it's the other way around, I remapped "F2" to Esc, X to Alt and Z to LCtrl. I would like to close my script at the same time as Raiden IV. Thank you for your help. ? Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 9, 2021 Share Posted February 9, 2021 2 hours ago, Gerald said: no, it's the other way around, I remapped "F2" to Esc, X to Alt and Z to LCtrl. Semantics. 3 hours ago, Gerald said: I would like to close my script at the same time as Raiden IV. 3 hours ago, JoeViking245 said: So if you were playing the game, and say you did have a keyboard, what would you press to quit the game? Quote Link to comment Share on other sites More sharing options...
Gerald Posted February 10, 2021 Share Posted February 10, 2021 @ JoeViking245, ESC Quote Link to comment Share on other sites More sharing options...
d8thstar Posted February 10, 2021 Share Posted February 10, 2021 this should be an easy one... i'm looking to send either the right alt or right control with a key press. let's say right control with the 'n' key and right alt with the 'o' key. can someone help? thanks all! Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 10, 2021 Share Posted February 10, 2021 1 hour ago, d8thstar said: right control with the 'n' key and right alt with the 'o' key n::RCtrl o::RAlt Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 10, 2021 Share Posted February 10, 2021 On 2/9/2021 at 11:19 AM, Gerald said: Everything works, but the script remains open after closing Raiden IV. How to close the script at the same time as the game (Raiden IV: Overkill). Small precision, the script is compiled in .exe I reread your post (a lot more carefully this time). Since your script is an already compiled exe file in which everything works, what you can do is: Write another script and compile it. Then in LaunchBox, Edit your Raiden IV game, go to the Additional Apps section, click Add Application. Browse to the location for this newly compiled script and select it. Check the box for Automatically Run After Main Application. Click OK. In this new script, put WinClose, ahk_exe MyRaidenScript.exe Replace "MyRaidenScript.exe" with the name of your compiled .exe file that you're wanting to have closed. Apologies for my prior confusion. Quote Link to comment Share on other sites More sharing options...
Gerald Posted February 11, 2021 Share Posted February 11, 2021 Thanks for your help and the time was up. The solution provided does not work.? Quote Link to comment Share on other sites More sharing options...
PiperCalls Posted February 14, 2021 Share Posted February 14, 2021 Hi, I'm trying to script an AHK that will launch a resolution changer with a profile to change the resolution to 1080, then launch a game, then when I press escape (which closes the game already) launch the resolution changer again with a profile to change back to 4K. With my (very limited) knowledge of AHK, I have 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. Run, C:\DisplayChanger2\dc2x86.exe -configure="1080p60.xml" return Run, E:\Launchbox\Games\Teknoparrot\Sega Nu\Luigi's Mansion Arcade\exe\x64\Game Loader All RH.exe return Esc:: Run, C:\DisplayChanger2\dc2x86.exe -configure="4K60.xml" The AHK does change the resolution to 1080, and back to 4K when I press Esc but it never launches the game. Any tips? Note: If I directly launch the game, it loads up fine. Thanks...Piper Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 14, 2021 Share Posted February 14, 2021 @PiperCalls Remove both "return". And if the Esc function doesn't work, put a "$" in front of it. Run, C:\DisplayChanger2\dc2x86.exe -configure="1080p60.xml" Run, E:\Launchbox\Games\Teknoparrot\Sega Nu\Luigi's Mansion Arcade\exe\x64\Game Loader All RH.exe $Esc:: Run, C:\DisplayChanger2\dc2x86.exe -configure="4K60.xml" Quote Link to comment Share on other sites More sharing options...
PiperCalls Posted February 14, 2021 Share Posted February 14, 2021 Ok I'll try that. Thank you. I'm learning ahk in real-time lol. Quote Link to comment Share on other sites More sharing options...
PiperCalls Posted February 15, 2021 Share Posted February 15, 2021 23 hours ago, JoeViking245 said: @PiperCalls Remove both "return". And if the Esc function doesn't work, put a "$" in front of it. Run, C:\DisplayChanger2\dc2x86.exe -configure="1080p60.xml" Run, E:\Launchbox\Games\Teknoparrot\Sega Nu\Luigi's Mansion Arcade\exe\x64\Game Loader All RH.exe $Esc:: Run, C:\DisplayChanger2\dc2x86.exe -configure="4K60.xml" Unfortunately same result. It will change rez & back but never launches the game. If I launch the game directly at that same location it loads up fine. Quote Link to comment Share on other sites More sharing options...
Cnells2000 Posted February 16, 2021 Share Posted February 16, 2021 I have a Game That Has Two Exits. and it will not escape quickly no matter what i do. The Controls Are: When Loading Game: ESC = quit In-Game: Soft Reset= ALT+F4 This Particular game has to soft reset before the ESC works. Since im using arcade controls i would like to be able to press 1+2 simultaneously and that would send Alt+F4. Then when it takes me to the beginning i can just press escape like normal. can someone help me please? and would i paste this in running ahk script or exit ahk script? thank you in advance 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.