Jump to content
The simFlight Network Forums
xxallrounderxx

Partly not working in P3D?

Recommended Posts

Hey!

 

Im using this FSUIPC Client DLL for a while now and i have to say: BRILLIANT :)

 

Yesterday i found your 3.0 BETA Version of the client...

 

Cause I wanted to send a keypress to Prepar3D, I used the new function:

FSUIPCConnection.SendKeyToFS(Keys.K, SendModifierKeys.Control, Me)

...im writing in vb...

 

The code works perfectly in FSX, but in Prepar3D simply nothing happens. But there is no error though...

 

Does anybody have an idea, why it doesnt work in Prepar3D?

 

Thanks,

Philipp

Share this post


Link to post
Share on other sites

Hi Philipp,

 

I don't have P3D so I can't test anything here.

 

To receive key presses, FSX or P3D must have focus. When you send keys with FSUIPCConnection.SendKeyToFS, the DLL brings the sim into focus using an FSUIPC control called 'Key focus restore'.

 

It may be that this doesn't work for P3D. Can you just try this out for me and report back? All you need to do is run this line of code from a button or similar:

FSUIPCConnection.SendControlToFS(FSUIPCControl.Key_focus_restore, 0)

If it's working then your application will lose focus and FSX/P3D will get the focus.

 

Depending on the results I'll see if there's anything that can be done.

 

Regards,

 

Paul

Share this post


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.

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

Loading...

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