nappyjim Posted February 1, 2020 Share Posted February 1, 2020 Noobie here, but I created a very very very simply AHK script that works in windows. When I press x, ALT+F4 is sent. I test this in notepad. Press x, notepad closes. Perfect. Open up CCS64, press ALT+F4 to just prove that key combo will close it, it does. Press x, nothing happens. I know CCS64 recognizes the x key because pressing ALT+x also closes CCS64. SO why is AHK not working in CCS64? others seem to post scripts for CCS64 so it must work. Here is my script: x:: send {alt down} send {F4} send {alt up} return Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 1, 2020 Share Posted February 1, 2020 Try adding "$" $x:: send {alt down} send {F4} send {alt up} return If that don't work, you could always use $x:: { WinClose, ahk_exe ccs.exe } Quote Link to comment Share on other sites More sharing options...
nappyjim Posted February 2, 2020 Author Share Posted February 2, 2020 Joe, Thanks but neither of those work. It weird because just launching CCS your taken to the the prompt where you have to type in RUN, or something, ya know. So if I press, Z on my keyboard, a Z is input on the screen. But when I press X, an X is NOT input onto the screen. So the AHK is working, but Ill be damned if CCS doesnt close! Alt-X will also close CCS. So I tried putting Alt-X into the AHK scrip, no dice. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 2, 2020 Share Posted February 2, 2020 $x:: { WinClose, ahk_exe ccs64.exe } I guess we need to make sure we're inputting the actual program's executable name that we're trying to close. And if for some reason you're using "CCS64-2005.exe", change it to that in the code above. 1 Quote Link to comment Share on other sites More sharing options...
nappyjim Posted February 6, 2020 Author Share Posted February 6, 2020 On 2/2/2020 at 2:42 PM, JoeViking245 said: $x:: { WinClose, ahk_exe ccs64.exe } I guess we need to make sure we're inputting the actual program's executable name that we're trying to close. And if for some reason you're using "CCS64-2005.exe", change it to that in the code above. That did the trick! Thanks 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.