Jump to content
LaunchBox Community Forums

Autohotkey not working in CCS64 emulator?


nappyjim

Recommended Posts

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


 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

  • Game On 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...