Jump to content
LaunchBox Community Forums
FreeSoftwareServers

AutoHotKey AHK Script to Hit Enter Key after launching game

Recommended Posts

Hey guys,

I don't really use AHK and was wondering if I can get a hand from somebody, I'm thinking this would be easy. I have a game which always launches a "configurator" but it saves the settings from last time I played, so I can just hit Enter then go back to my couch. Can anybody automate this so that AHK fakes an "Enter" keypress say 10 seconds after game launches?

Share this post


Link to post
Share on other sites

No idea if this will work but try something like this:

#NoEnv

Sleep, 10000
SetKeyDelay, -1, 110
Send {Enter}
Return

It's just a modified script used to send F11 to Higan to switch it to fullscreen. If it doesn't work I am sure someone much more knowledgeable with AHK scripts than myself will have an answer for you that works. 

Share this post


Link to post
Share on other sites
2 hours ago, Lordmonkus said:

No idea if this will work but try something like this:


#NoEnv

Sleep, 10000
SetKeyDelay, -1, 110
Send {Enter}
Return

It's just a modified script used to send F11 to Higan to switch it to fullscreen. If it doesn't work I am sure someone much more knowledgeable with AHK scripts than myself will have an answer for you that works. 

Hmm didn't realize this was the case >> https://bitbucket.org/jasondavidcarr/launchbox/issues/1446/autohotkey-on-a-per-game-basis >> I'll have to test when I have more time. I expect it will work, just require more of my time to configure, thanks!

Share this post


Link to post
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
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...