Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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.

Paul

FSUIPCClient3.0_RC2.zip

Posted

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.

Paul

Please sign in to comment

You will be able to leave a comment after signing in



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.