Jump to content
The simFlight Network Forums

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.