Jump to content
The simFlight Network Forums

FSUIPC sending keypresses to sim

Recommended Posts

Yes, if you use Version 3 of my DLL (.NET 4 or above only) then it's easy:

This example sends CTRL-SHIFT-A and returns focus to the current form. The focus must be given to the flight sim window for the key press to work. The DLL will do this for you and then return the focus to your form.

        FSUIPCConnection.SendKeyToFS(Keys.A, SendModifierKeys.Control Or SendModifierKeys.Shift, Me)

I've attached version 3.



Link to comment
Share on other sites

Minimized windows cannot get focus, so it will not work when minimised.

Do you really need key presses? It would be better to send controls to the flight sim if you can. E.g. Turning on aircraft lights etc can be done with controls on default planes.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.