Apparently I can’t create topics in the guides section.
Here’s a snippet of code I execute to automate the “press any key” hurdle while starting the game.
It needs to be executed with AutoIT (https://www.autoitscript.com/), a well-known scripting language for automating all kinds of stuff.
----------- script starts here----------------------
#include <AutoItConstants.au3>
; Insert below whatever it says when you right click the MSFS shortcut on desktop and select Properties
ShellExecute(“steam://rungameid/1250410”)
; Loading time in milliseconds. Make sure that it includes a few extra seconds just in case.
Sleep(80000)
; Actual window title includes version number, i.e. Microsoft Flight Simulator - 1.7.12.0
; However this Command matches partial title from the start
WinActivate(“Microsoft Flight Simulator”)
; Press any key!
MouseClick($MOUSE_CLICK_LEFT)
----------- script ends here----------------------
I wasn’t able to get it to work through sending keyboard keystrokes, neither through Powershell nor through Autoit. But emulating mouse clicks seems to work.