My (overengineered) workaround to the "Press any key" screen

Hi all,

Since I’ve seen that other people are just as annoyed as me of the “Press Any Key” screen, I thought I’d share my workaround for it. I’m using a freeware program called AutoHotkey to simulate pressing the space key after the program starts. I’m also using the -FastLaunch command line parameter to get rid of the intro videos.

Here’s a step by step:

  1. Download & install AutoHotkey

  2. Create a file called MSFS.ahk on your desktop.

  3. Paste the following commands into the file (note that the application path on the “Run” line is for a Windows Store install. If you bought the game from Steam, that path will be different. See the end of this post for details). Also note that the line starting with “shell:” is part of the previous line, not a new line. The forum breaks it into two lines.

    #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:\Windows\System32\cmd.exe /C start shell:AppsFolder\Microsoft.FlightSimulator_8wekyb3d8bbwe!App -FastLaunch
    SetTitleMatchMode, 1
    WinWait, Microsoft Flight Simulator
    Sleep, 17000
    WinActivate, Microsoft Flight Simulator
    SendInput {Space down}
    Sleep, 500
    SendInput {Space up}

  4. Save and close the file.

  5. Double-click the file to launch MSFS from now on.
    You can also add other Run commands into the script if you need to start any other utilities at the same time as MSFS. For example, I’m also starting LittleNavMap, FSUIPC7 and Fspanelserver with this script. This way I get into the game and all the tools I need with just one double-click.

If the keypress doesn’t happen, increase the value on the Sleep 17000 line. I set mine to 17 seconds because that’s how long it takes MSFS to get to the “Press Any Key” screen on my computer. Your case might be different. The second Sleep command simulates how long the Space key is held down (500 milliseconds).

Edit: For anyone using Steam, replace the 5th line of the script with the following:

Run C:\Windows\System32\cmd.exe /C start “C:\Program Files (x86)\Steam\Steam.exe” steam://rungameid/1250410

(This will work, no matter where the game is installed!) You’ll also want to set “-FastLaunch” (without the speech marks) as the launch options in Steam. Thanks to @GreatCabbage2 for this info!

5 Likes

My workaround is that I press the key. I know, I know it’s genius isn’t it. :+1:

35 Likes

Haha. I did that too for a while, but it became annoying. Now I just 2click the script and go get a glass of water while the program starts up and I come back to the actual menu.

Good work! I’ll be using it. I notice also that a mouse click on the screen also works as press any key to start

I noticed last night that pressing any key didn’t do anything, it had been working, but a mouse click worked.

Hahahhahaha XD

At OP: ok sometimes I wish that screen to be entirely skippable (with an option in game settings) but I’m not installing a program to press a key for me…

Thanks anyways! Other people would enjoy this!

1 Like

Yeah, a proper option in Settings would be the right approach (or just removing that prompt entirely, since it doesn’t seem to serve any real purpose). But, until then, I’m using this workaround.
I know, it’s an extra program, but in my case, I’m also using it to start LittleNavMap at the same time as MSFS, and potentially for other automation in the future, so it’s worth the 2 min install.

Fortunately I already have AHK installed, as I used that to communicate with the X-Plane ATC dialogue window.

I’ll have a play with this later.

1 Like

At least on my machine, it depends on whether the app actually has “focus” - which you really can’t tell. When I launch the app, I wait the few seconds it takes to get the initial black screen, then click that with my mouse. Then I go grab a Dew while the production credits roll. When I come back, the opening mp4 is rolling and I just reach down and tap the space bar.

You don’t need to worry about that. AHK will indentify the window title, and make it the focus, so that mouse/keyboard inputs are applied to the correct window.

1 Like

Over engineered much?

As @hobanagerik also mentioned, the script I wrote detects the MSFS window (the ‘WinWait’ line) and then brings it into focus (the ‘WinActivate’ line) to ensure that the Space key is sent to the correct window.

You’ve clearly never worked in IT. :wink:

I’m an old school user of AutoIT, that seems to have morphed into AHK.

1 Like

Asobo has so much problems with Focus lost, not only here probably but also elswhere, this starting me think that this will go to neverending story, same as I said after some days of release and see how many people have so different bugs!!!

Totally! :sweat_smile: But I’m a sucker for automation. My actual AHK script is longer than what I posted here. I’m also using it to automatically start LittleNavMap at the same time as MSFS, since I always use that to track my flights.

If the keyboard sometimes on the “press any key” screen do not work simply press one button on the gamepad or Hotas. It works for me. Much simple. :joy:

It’s really sad we need something like this :frowning:

My work around is to click on the screen. One mouse click. What;s the problem, I don’t get it.

Lies! I need two clicks. First one focusses the app, second one skips the screen.

Maybe, it is because I use multi monitor setup though… Hmm… Dunno…

2 Likes

You are right! 2 clicks are needed. I did lie :frowning:

1 Like