Jump to content
LaunchBox Community Forums

AutoHotKey script to Pause/Unpause STEEM


Recommended Posts

If you use STEEM for your Atari ST emulation, here's a quick AHK script to Pause/Unpause the emu using a controller button.

I setup ALT+P using the STEEM Shortcuts to Toggle Start/Stop Emulation. When the emulation stops, STEEM drops you out of fullscreen. If you resume by pressing ALT+P again, STEEM leaves you in window mode, but.. If you turn fullscreen on instead, the emulator resumes automatically.

So the script bellow - mapped to my 4th controller button 20 - works as follows (using MyC:=!MyC: as an on/off switch): when you press the button it sends ALT+P to STEEM to pause the emu entering window mode. The next time you press the button it sends ALT+Enter to revert to fullscreen and resume the emulation. Repeat...

; Pause
#If ( not WinActive("steem") )
4Joy20::
If GetKeyState("4Joy20")
{
   SetKeyDelay, -1, 110
   MyC:=!MyC
   if MyC = 1
     Send !{p}
   else
     Send !{enter}
   return
}
#If
Return

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...