Jump to content
The simFlight Network Forums

How to trigger control


RavenTech

Recommended Posts

The easiest way would be to use the new beta version of the DLL as it has a feature to send controls directly to FS. I've attached it here. Just overwrite your current DLL and XML file with the new ones.

 

To send a control call:

 

FSUIPCConnection.SendControlToFs(ControlNumber, ParameterValue);

 

This just sends the control immediately (no need for a Process() call).

 

There are also overloads that take an Enum instead of the raw control number. For your request to reload the aircraft you would use:

FSUIPCConnection.SendControlToFS(FsControl.RELOAD_USER_AIRCRAFT, 0);

(A parameter is not required for this control so it's just set to 0).

 

 

Enums available are:

 

FsControl - the normal FSX/P3D list of controls

FSUIPCControl - Additional controls added by FSUIPC

FSUIPCAxesControl - Used to control axed assign directly in FSUIPC

FSUIPCAutoPilotControl

PMControl - Controls for Project Magenta software

PMDG_737_NGX_Control - Controls defined in the PMDG 737 NGX SDK

 

Paul

FSUIPCClient3.0_BETA.zip

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.