• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Can I override engine starter keys and CTRL+E?

Messages
20
Country
england
Is there anyway I could disable the default functionality of these two keyboard operations and make them instead execute bits of my own code?

In the case of the engine starter keys, I want to make them set internal variables in the panel (which will be used to move the starter lever bitmaps) but only actually turn the starters if other internal variables (corresponding to the availability of appropriate electrical and pneumatic power) are set appropriately.

In the case of CTRL+E, I want to disable FS9's default auto-start routine and instead execute my own custom auto-start routine, which will start the APU (if necessary), configure electrical and pneumatic power, then start the engines (in an order other than the default 1-2-3-4) then parallel the generators.

Could anyone here let me know how to override the default functionality of these keyboard combinations, if it is possible,

Thanks,

George
 
Well, if you have a set of different conditions that need to be fulfilled to start an engine, using the engine starter keys will basically do nothing until your conditions are fulfilled.

Gauge code triggered by keys:
Code:
<Keys>
  <On Key="374">
  [code 1]
  </On>
  <On Key="373">
  [code 2]
  </On>
  </Keys>

The numbers ("374", "373") indicate the key combination that triggers the respective script. I used to have a list somewhere, but I think that the FS9 SDK documentation contains one as well. In the example, the key combo used is Shift+F5 and Shift+F6.


- Edit:

Almost fogot: This might be more akin of what you're after.

Code:
<Keys>
<On Event="SITUATION_SAVE">
[code]
</On>
</Keys>

Just use the corresponding events for the engine starter and autostart for this code.
 
Hi George,

To control Ctrl-E you only have to sense it with an On Key statement as above and then send another autostart command - 1 (&gt;K:ENGINE_AUTO_START). This cancels the first one. Then start running your own starting code.

I've used this technique to create a true slow cranking radial piston startup gauge, with the help of a custom FS9 (only) gauge from Doug Dawson (although I admit he also sensed the Ctrl-E keystroke so I didn't have to bother with an On Key statement).
 
Back
Top