sniperfull Posted July 5, 2017 Report Share Posted July 5, 2017 Hi i want my program that is coded in VB.Net to send a key to p3d or fsx ... Is that atall possible with FSUIPC? Link to comment Share on other sites More sharing options...
Paul Henty Posted July 6, 2017 Report Share Posted July 6, 2017 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 Link to comment Share on other sites More sharing options...
sniperfull Posted July 6, 2017 Author Report Share Posted July 6, 2017 Thanks I will take a look at that this weekend thanks Link to comment Share on other sites More sharing options...
sniperfull Posted July 8, 2017 Author Report Share Posted July 8, 2017 What about when the sim is minimized from what i've tested is that it doesnt seem to work? Sniperfull. Link to comment Share on other sites More sharing options...
Paul Henty Posted July 8, 2017 Report Share Posted July 8, 2017 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now