FSUIPC Client DLL
.NET interface for FSUIPC
FSUIPCConnection Class Reference

A class that handles communication and data transfer to and from Pete Dowson's FSUIPC or WideFS. More...

Static Public Member Functions

static FSUIPCVersion FSUIPCVersionForClass (byte ClassInstance)
 Returns the version of FSUIPC we are connected to for a specific class instance.

Parameters
ClassInstanceThe number of the Class Instance for which you want the FSUIPC Version
More...
 
static AirportsDatabase AirportsDatabaseForClass (byte ClassInstance)
 The active Airports Database object for the specified class instance. Use this object to access data about airports More...
 
static AITrafficServices AITrafficServicesForClass (byte ClassInstance)
 The active AI Traffic Services object for the specified class instance. Use this object to access data about AI aircraft. More...
 
static UserInputServices UserInputServicesForClass (Byte ClassInstance)
 The active UserInputServices object for the specified Class Instance. Use this object to access facilities to set up Keystrokes and Joystick Button presses for your application. Also allows you to add a menu item into Flight Sim. More...
 
static PayloadServices PayloadServicesForClass (byte ClassInstance)
 The active PayloadServices object for the specified Class Instance. Use this object to access Payload and Fuel information on the current aircraft More...
 
static WeatherServices WeatherServicesForClass (byte ClassInstance)
 The active WeatherServices object for the specified Class Instance. Use this object to read and write weather. More...
 
static Statistics StatisticsForClass (byte ClassInstance)
 The statistics object for a specified Class Instance. Use this object to read various statistics about the connection More...
 
static bool WideClientForClass (byte ClassInstance)
 A boolean indicating if the connection is to WideClient.exe More...
 
static bool IsConnectionOpen ()
 DEPRECATED: Use the property IsOpen instead. More...
 
static bool IsConnectionOpenForClass (byte ClassInstance)
 Lets you test if the connection to FSUIPC has been opened for a specific class instance. More...
 
static FsVersion FlightSimVersionForClass (byte ClassInstance)
 The version of Flight Simulator that FSUIPC is running in, or that WideFS is connected to. More...
 
static void Open ()
 Opens a connection to FSUIPC or WideFS. Call this once when your application starts. More...
 
static void Open (int RequiredFlightSimVersion)
 Opens communication to FSUIPC or WideFS. Call this once when your application starts. More...
 
static void Open (FlightSim RequiredFlightSimVersion)
 Opens communication to FSUIPC or WideFS. Call this once when your application starts. More...
 
static void Open (byte ClassInstance, FlightSim RequiredFlightSimVersion)
 Opens communication to a specific class instance of WideClient.exe. Call this for each instance you want to communicate with. More...
 
static void Open (byte ClassInstance, int RequiredFlightSimVersion)
 Opens communication to a specific class instance of WideClient.exe. Call this for each instance you want to communicate with. More...
 
static void DisconnectGroup (string groupName)
 Use DeleteGroup() instead. Does the same thing but is a better name More...
 
static void DeleteGroup (string groupName)
 Deletes an entire group of Offsets from the FSUIPCConnection class. Process() can no longer be called on for this group. Only use this method if you will never need to use the offsets in the group again. More...
 
static void Close ()
 Closes all open connections with FSUIPC or WideFS and cleans up the memory used. More...
 
static void Close (byte ClassInstance)
 Closes the connections to a specific class instance of WideClient.exe and cleans up the memory used. More...
 
static void Process ()
 Processes all the Offsets in the default group. To process a specific group of Offsets pass the name of the Group as a parameter. More...
 
static void Process (string GroupName)
 Processes all the Offsets in the specified group. More...
 
static void Process (IEnumerable< string > GroupNames)
 Processes all the Offsets in the groups passed in. More...
 
static void Process (byte ClassInstance)
 Processes all the Offsets in the default group for the specified class instance of WidwClient.exe. To process a specific group of Offsets pass the name of the Group as a parameter. More...
 
static void Process (byte ClassInstance, string GroupName)
 Processes all the Offsets in the specified group for the specified class instance of WideClient.exe. More...
 
static void Process (byte ClassInstance, IEnumerable< string > GroupNames)
 Processes all the Offsets in the groups passed in for specified class instance of WidwClient.exe. More...
 
static void SendKeyToFS (Keys Key)
 Sends a set of key strokes to the Flight Sim window. More...
 
static void SendKeyToFS (byte ClassInstance, Keys Key)
 Sends a set of key strokes to the specified Class Instance of Flight Sim. More...
 
static void SendKeyToFS (Keys Key, SendModifierKeys Modifiers)
 Sends a set of key strokes to the Flight Sim window. More...
 
static void SendKeyToFS (byte ClassInstance, Keys Key, SendModifierKeys Modifiers)
 Sends a set of key strokes to the specified Class Instance of Flight Sim. More...
 
static void SendKeyToFS (Keys Key, Form ReturnFocusToForm)
 Sends a set of key strokes to the Flight Sim window. More...
 
static void SendKeyToFS (byte ClassInstance, Keys Key, Form ReturnFocusToForm)
 Sends a set of key strokes to the specified Class Instance of Flight Sim. More...
 
static void SendKeyToFS (Keys Key, SendModifierKeys Modifiers, Form ReturnFocusToForm)
 Sends a set of key strokes to the Flight Sim window. More...
 
static void SendKeyToFS (byte ClassInstance, Keys Key, SendModifierKeys Modifiers, Form ReturnFocusToForm)
 Sends a set of key strokes to the specified Class Instance of Flight Sim. More...
 
static void SendControlToFS (FsControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (FSUIPCControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (FSUIPCAxisControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (PMControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (FSUIPCAutoPilotControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (PMDG_737_NGX_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (PMDG_777X_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (PMDG_747QOTSII_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, FsControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, FSUIPCControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, FSUIPCAxisControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, PMControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, FSUIPCAutoPilotControl Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, PMDG_737_NGX_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, PMDG_777X_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, PMDG_747QOTSII_Control Control, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (int ControlNumber, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static void SendControlToFS (byte ClassInstance, int ControlNumber, int ParameterValue)
 Sends a control to FS with an optional parameter. More...
 
static double ReadLVar (string LVAR)
 Reads a local panel variable (L:VAR) from the flight sim. More...
 
static double ReadLVar (byte ClassInstance, string LVAR)
 Reads a local panel variable (L:VAR) from the flight sim More...
 
static void WriteLVar (string LVAR, double NewValue)
 Writes a new value to a local panel variable (L:VAR) in the flight sim More...
 
static void WriteLVar (byte ClassInstance, string LVAR, double NewValue)
 Writes a new value to a local panel variable (L:VAR) in the flight sim More...
 
static void MoveAircraft (FsGate Gate, bool LeavePaused)
 Moves the player aircraft to a Gate from the Airports Database. More...
 
static void MoveAircraft (FsPositionSnapshot PositionSnapshot, bool LeavePaused)
 Moves the player aircraft according to the values in the position snapshot. More...
 
static void MoveAircraft (FsRunway Runway, bool LeavePaused)
 Moves the player aircraft to a Runway from the Airports Database. More...
 
static void MoveAircraft (FsHelipad Helipad, bool LeavePaused)
 Moves the player aircraft to a Helipad from the Airports Database. More...
 
static void MoveAircraft (FsLatLonPoint NewLocation, bool OnGround, FsAltitude? Alt, double? HeadingTrue, double? Pitch, double? Bank, double? IndicatedAirSpeedKnots, bool LeavePaused)
 Moves the player aircraft to a new lon/lat location. You may optionally specify new Altitude, Indicated Airspeed, Pitch, Bank or Heading values. More...
 
static void MoveAircraft (byte ClassInstance, FsLatLonPoint NewLocation, bool OnGround, FsAltitude? Alt, double? HeadingTrue, double? Pitch, double? Bank, double? IndicatedAirSpeedKnots, bool LeavePaused)
 Moves the player aircraft to a new lon/lat location. You may optionally specify new Altitude, Indicated Airspeed, Pitch, Bank or Heading values. More...
 
static FsPositionSnapshot GetPositionSnapshot ()
 Takes a snapshot of the current position of the aircraft including: Location, altitude, heading, pitch, bank, onGround and IAS. More...
 
static FsPositionSnapshot GetPositionSnapshot (byte ClassInstance)
 Takes a snapshot of the current position of the aircraft including: Location, altitude, heading, pitch, bank, onGround and IAS. More...
 
static DateTime GetUTCDateTimeForClass (byte ClassInstance)
 Gets the current UTC date and time set in the Flight Sim. (aka ZULU time and GMT) for a specific WideClient Instance. More...
 
static void SetUTCDateTimeForClass (byte ClassInstance, DateTime NewDateTime)
 Sets the current UTC date and time set in the Flight Sim. (aka ZULU time and GMT) for a specific WideClient Instance. More...
 
static DateTime GetLocalDateTimeForClass (byte ClassInstance)
 Gets the current Local date and time set in the Flight Sim for a specific WideClient Instance. More...
 
static void SetLocalDateTimeForClass (byte ClassInstance, DateTime NewDateTime)
 Sets the current Local date and time set in the Flight Sim for a specific WideClient Instance. More...
 

Properties

static bool GroupsIsolatedToThread [get, set]
 Sets/Gets whether or not groups are unique to threads or can be accessed via any thread. More...
 
static Version DLLVersion [get]
 Returns the version of the FSUIPC Client DLL. More...
 
static FSUIPCVersion FSUIPCVersion [get]
 Returns the version of FSUIPC we are connected to. More...
 
static AirportsDatabase AirportsDatabase [get]
 The active Airports Database object. Use this object to access data about airports More...
 
static AITrafficServices AITrafficServices [get]
 The active AI Traffic Services object. Use this object to access data about AI aircraft. More...
 
static UserInputServices UserInputServices [get]
 The active UserInputServices object. Use this object to access facilities to set up Keystrokes and Joystick Button presses for your application. Also allows you to add a menu item into Flight Sim. More...
 
static PayloadServices PayloadServices [get]
 The active PayloadServices object. Use this object to access Payload and Fuel information on the current aircraft More...
 
static WeatherServices WeatherServices [get]
 The active WeatherServices object. Use this object to read and write weather information More...
 
static Statistics Statistics [get]
 The statistics object. Use this object to read various statistics about the connection More...
 
static int SendKeyFocusWaitTime = 150 [get, set]
 Sets the time (in milliseconds) that SendKeyToFS will wait for the focus to change to/from the Flight Sim window. More...
 
static bool IsOpen [get]
 Returns true is the connection is currently open. More...
 
static bool IsConnectedToWideClient [get]
 A boolean indicating if the connection is to WideClient.exe More...
 
static FsVersion FlightSimVersionConnected [get]
 The version of Flight Simulator that FSUIPC is running in, or that WideFS is connected to. More...
 
static DateTime UTCDateTime [get, set]
 The current UTC date and time set in the Flight Sim. (aka ZULU time and GMT). Setting a new value changes the date/time in the simulator. More...
 
static DateTime LocalDateTime [get, set]
 The current Local date and time set in the Flight Sim. Setting a new value changes the date/time in the simulator. More...
 

Detailed Description

A class that handles communication and data transfer to and from Pete Dowson's FSUIPC or WideFS.

Member Function Documentation

◆ AirportsDatabaseForClass()

static AirportsDatabase AirportsDatabaseForClass ( byte  ClassInstance)
inlinestatic

The active Airports Database object for the specified class instance. Use this object to access data about airports

Parameters
ClassInstanceThe number of the Class Instance for which you want the airports database
Returns
The AirportsDatabase for the given class instance

◆ AITrafficServicesForClass()

static AITrafficServices AITrafficServicesForClass ( byte  ClassInstance)
inlinestatic

The active AI Traffic Services object for the specified class instance. Use this object to access data about AI aircraft.

Parameters
ClassInstanceThe number of the Class Instance for which you want the traffic services
Returns
The AITrafficServices for the given class instance

◆ Close() [1/2]

static void Close ( )
inlinestatic

Closes all open connections with FSUIPC or WideFS and cleans up the memory used.

Please call this when your application quits. The FSUIPC interface uses unmanaged memory for communication. The .NET garbage collection cannot clean this up for you.

◆ Close() [2/2]

static void Close ( byte  ClassInstance)
inlinestatic

Closes the connections to a specific class instance of WideClient.exe and cleans up the memory used.

Please call this when your application quits. The FSUIPC interface uses unmanaged memory for communication. The .NET garbage collection cannot clean this up for you.

◆ DeleteGroup()

static void DeleteGroup ( string  groupName)
inlinestatic

Deletes an entire group of Offsets from the FSUIPCConnection class. Process() can no longer be called on for this group. Only use this method if you will never need to use the offsets in the group again.

Parameters
groupNameThe name of the Group you want to delete.

◆ DisconnectGroup()

static void DisconnectGroup ( string  groupName)
inlinestatic

Use DeleteGroup() instead. Does the same thing but is a better name

Parameters
groupName

◆ FlightSimVersionForClass()

static FsVersion FlightSimVersionForClass ( byte  ClassInstance)
inlinestatic

The version of Flight Simulator that FSUIPC is running in, or that WideFS is connected to.

Parameters
ClassInstanceThe number of the Class Instance to get the Flight Sim Version for.

◆ FSUIPCVersionForClass()

static FSUIPCVersion FSUIPCVersionForClass ( byte  ClassInstance)
inlinestatic

Returns the version of FSUIPC we are connected to for a specific class instance.

Parameters
ClassInstanceThe number of the Class Instance for which you want the FSUIPC Version

◆ GetLocalDateTimeForClass()

static DateTime GetLocalDateTimeForClass ( byte  ClassInstance)
inlinestatic

Gets the current Local date and time set in the Flight Sim for a specific WideClient Instance.

Usually use the property "UTCDateTime".

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
Returns

◆ GetPositionSnapshot() [1/2]

static FsPositionSnapshot GetPositionSnapshot ( )
inlinestatic

Takes a snapshot of the current position of the aircraft including: Location, altitude, heading, pitch, bank, onGround and IAS.

Note that this information can be passed directly to the MoveAircraft method.

Returns
A FsPositionSnapshot class holding the position values

◆ GetPositionSnapshot() [2/2]

static FsPositionSnapshot GetPositionSnapshot ( byte  ClassInstance)
inlinestatic

Takes a snapshot of the current position of the aircraft including: Location, altitude, heading, pitch, bank, onGround and IAS.

Note that this information can be passed directly to the MoveAircraft method.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
Returns
A FsPositionSnapshot class holding the position values

◆ GetUTCDateTimeForClass()

static DateTime GetUTCDateTimeForClass ( byte  ClassInstance)
inlinestatic

Gets the current UTC date and time set in the Flight Sim. (aka ZULU time and GMT) for a specific WideClient Instance.

Usually use the property "UTCDateTime".

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
Returns

◆ IsConnectionOpen()

static bool IsConnectionOpen ( )
inlinestatic

DEPRECATED: Use the property IsOpen instead.

Returns

◆ IsConnectionOpenForClass()

static bool IsConnectionOpenForClass ( byte  ClassInstance)
inlinestatic

Lets you test if the connection to FSUIPC has been opened for a specific class instance.

Note that you cannot use this to see if FS is still connected.

Parameters
ClassInstanceThe number of the Class Instance to test for an open connection.
Returns
True is the connection has been opened. False if it has not.

◆ MoveAircraft() [1/6]

static void MoveAircraft ( FsGate  Gate,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft to a Gate from the Airports Database.

Only works with FSX and above

Parameters
GateThe FsGate object representing the gate to move the player aircraft to
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ MoveAircraft() [2/6]

static void MoveAircraft ( FsPositionSnapshot  PositionSnapshot,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft according to the values in the position snapshot.

A position snapshot can be created manually, or automatically using the FSUIPConnection.GetPositionSnapshot() method.

Only works with FSX and above

Parameters
PositionSnapshotThe FsGate object representing the gate to move the player aircraft to
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ MoveAircraft() [3/6]

static void MoveAircraft ( FsRunway  Runway,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft to a Runway from the Airports Database.

Only works with FSX and above

Parameters
RunwayThe FsRunway object representing the runway to move the player aircraft to. The player will be moves to the runway's start location with the correct heading.
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ MoveAircraft() [4/6]

static void MoveAircraft ( FsHelipad  Helipad,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft to a Helipad from the Airports Database.

Only works with FSX and above

Parameters
HelipadThe FsHelipad object representing the helipad to move the player aircraft to.
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ MoveAircraft() [5/6]

static void MoveAircraft ( FsLatLonPoint  NewLocation,
bool  OnGround,
FsAltitude Alt,
double?  HeadingTrue,
double?  Pitch,
double?  Bank,
double?  IndicatedAirSpeedKnots,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft to a new lon/lat location. You may optionally specify new Altitude, Indicated Airspeed, Pitch, Bank or Heading values.

Only works with FSX and above

Parameters
NewLocationThe new FsLatLonPoint to move to
OnGroundPass true if you want the aircraft on the ground after moving. (Speed and Altitude are ignored in this case)
AltThe new altitude passed as a FsAltitude class. (e.g. FsAltitude.FromFeet(3000))

Pass null (Nothing in VB) to keep the current altitude)

Parameters
HeadingTrueThe new heading in degrees true<para>Pass null (Nothing in VB) to keep the current heading)
PitchThe new pitch angle of the aircraft in degrees<para>Pass null (Nothing in VB) to keep the current pitch angle)
BankThe new bank angle of the aircraft in degrees true<para>Pass null (Nothing in VB) to keep the current bank angle)
IndicatedAirSpeedKnotsThe new indicated airspeed of the aircraft in knots<para>Pass null (Nothing in VB) to keep the current airspeed)
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ MoveAircraft() [6/6]

static void MoveAircraft ( byte  ClassInstance,
FsLatLonPoint  NewLocation,
bool  OnGround,
FsAltitude Alt,
double?  HeadingTrue,
double?  Pitch,
double?  Bank,
double?  IndicatedAirSpeedKnots,
bool  LeavePaused 
)
inlinestatic

Moves the player aircraft to a new lon/lat location. You may optionally specify new Altitude, Indicated Airspeed, Pitch, Bank or Heading values.

Only works with FSX and above

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
NewLocationThe new FsLatLonPoint to move to
OnGroundPass true if you want the aircraft on the ground after moving. (Speed and Altitude are ignored in this case)
AltThe new altitude passed as a FsAltitude class. (e.g. FsAltitude.FromFeet(3000))

Pass null (Nothing in VB) to keep the current altitude)

Parameters
HeadingTrueThe new heading in degrees true<para>Pass null (Nothing in VB) to keep the current heading)
PitchThe new pitch angle of the aircraft in degrees<para>Pass null (Nothing in VB) to keep the current pitch angle)
BankThe new bank angle of the aircraft in degrees true<para>Pass null (Nothing in VB) to keep the current bank angle)
IndicatedAirSpeedKnotsThe new indicated airspeed of the aircraft in knots<para>Pass null (Nothing in VB) to keep the current airspeed)
LeavePausedIf set to true, the sim will be paused after moving the aircraft

◆ Open() [1/5]

static void Open ( )
inlinestatic

Opens a connection to FSUIPC or WideFS. Call this once when your application starts.

◆ Open() [2/5]

static void Open ( int  RequiredFlightSimVersion)
inlinestatic

Opens communication to FSUIPC or WideFS. Call this once when your application starts.

Parameters
RequiredFlightSimVersionSpecify a version of Flight Sim if you want to limit your application to run only on that version.

◆ Open() [3/5]

static void Open ( FlightSim  RequiredFlightSimVersion)
inlinestatic

Opens communication to FSUIPC or WideFS. Call this once when your application starts.

Parameters
RequiredFlightSimVersionSpecify a version of Flight Sim if you want to limit your application to run only on that version.

◆ Open() [4/5]

static void Open ( byte  ClassInstance,
FlightSim  RequiredFlightSimVersion 
)
inlinestatic

Opens communication to a specific class instance of WideClient.exe. Call this for each instance you want to communicate with.

Parameters
ClassInstanceSpecify a specific class instance of wideclient to connect to. (See WideFS documentation for details)
RequiredFlightSimVersionSpecify a version of Flight Sim if you want to limit your application to run only on that version.

◆ Open() [5/5]

static void Open ( byte  ClassInstance,
int  RequiredFlightSimVersion 
)
inlinestatic

Opens communication to a specific class instance of WideClient.exe. Call this for each instance you want to communicate with.

Parameters
ClassInstanceSpecify a specific class instance of wideclient to connect to. (See WideFS documentation for details)
RequiredFlightSimVersionSpecify a version of Flight Sim if you want to limit your application to run only on that version.

◆ PayloadServicesForClass()

static PayloadServices PayloadServicesForClass ( byte  ClassInstance)
inlinestatic

The active PayloadServices object for the specified Class Instance. Use this object to access Payload and Fuel information on the current aircraft

Parameters
ClassInstanceThe number of the Class Instance for which you want the payload services
Returns
The PayloadServices for the given class instance

◆ Process() [1/6]

static void Process ( )
inlinestatic

Processes all the Offsets in the default group. To process a specific group of Offsets pass the name of the Group as a parameter.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

◆ Process() [2/6]

static void Process ( string  GroupName)
inlinestatic

Processes all the Offsets in the specified group.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

Parameters
GroupNameThe name of the group to process.

◆ Process() [3/6]

static void Process ( IEnumerable< string >  GroupNames)
inlinestatic

Processes all the Offsets in the groups passed in.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

Parameters
GroupNamesThe names of the groups to process.

◆ Process() [4/6]

static void Process ( byte  ClassInstance)
inlinestatic

Processes all the Offsets in the default group for the specified class instance of WidwClient.exe. To process a specific group of Offsets pass the name of the Group as a parameter.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.

◆ Process() [5/6]

static void Process ( byte  ClassInstance,
string  GroupName 
)
inlinestatic

Processes all the Offsets in the specified group for the specified class instance of WideClient.exe.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
GroupNameThe name of the group to process.

◆ Process() [6/6]

static void Process ( byte  ClassInstance,
IEnumerable< string >  GroupNames 
)
inlinestatic

Processes all the Offsets in the groups passed in for specified class instance of WidwClient.exe.

All Offsets will either have their value updated from FSUIPC, or have their value written to FSUIPC as appropriate.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
GroupNamesThe names of the groups to process.

◆ ReadLVar() [1/2]

static double ReadLVar ( string  LVAR)
inlinestatic

Reads a local panel variable (L:VAR) from the flight sim.

Parameters
LVARThe name of the variable to read. With or without the "L:" prefix
Returns

◆ ReadLVar() [2/2]

static double ReadLVar ( byte  ClassInstance,
string  LVAR 
)
inlinestatic

Reads a local panel variable (L:VAR) from the flight sim

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
LVARThe name of the variable to read. With or without the "L:" prefix
Returns

◆ SendControlToFS() [1/18]

static void SendControlToFS ( FsControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [2/18]

static void SendControlToFS ( FSUIPCControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [3/18]

static void SendControlToFS ( FSUIPCAxisControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [4/18]

static void SendControlToFS ( PMControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [5/18]

static void SendControlToFS ( FSUIPCAutoPilotControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [6/18]

static void SendControlToFS ( PMDG_737_NGX_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [7/18]

static void SendControlToFS ( PMDG_777X_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [8/18]

static void SendControlToFS ( PMDG_747QOTSII_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [9/18]

static void SendControlToFS ( byte  ClassInstance,
FsControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [10/18]

static void SendControlToFS ( byte  ClassInstance,
FSUIPCControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [11/18]

static void SendControlToFS ( byte  ClassInstance,
FSUIPCAxisControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [12/18]

static void SendControlToFS ( byte  ClassInstance,
PMControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [13/18]

static void SendControlToFS ( byte  ClassInstance,
FSUIPCAutoPilotControl  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [14/18]

static void SendControlToFS ( byte  ClassInstance,
PMDG_737_NGX_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [15/18]

static void SendControlToFS ( byte  ClassInstance,
PMDG_777X_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [16/18]

static void SendControlToFS ( byte  ClassInstance,
PMDG_747QOTSII_Control  Control,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlThe control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [17/18]

static void SendControlToFS ( int  ControlNumber,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ControlNumberThe number of the control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendControlToFS() [18/18]

static void SendControlToFS ( byte  ClassInstance,
int  ControlNumber,
int  ParameterValue 
)
inlinestatic

Sends a control to FS with an optional parameter.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
ControlNumberThe number of the control to send
ParameterValueThe value of the parameter to send. Use 0 to if no parameter is required.

◆ SendKeyToFS() [1/8]

static void SendKeyToFS ( Keys  Key)
inlinestatic

Sends a set of key strokes to the Flight Sim window.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
KeyThe key to send. No not use modifiers here, use the parameter provided.

◆ SendKeyToFS() [2/8]

static void SendKeyToFS ( byte  ClassInstance,
Keys  Key 
)
inlinestatic

Sends a set of key strokes to the specified Class Instance of Flight Sim.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
KeyThe key to send. No not use modifiers here, use the parameter provided.

◆ SendKeyToFS() [3/8]

static void SendKeyToFS ( Keys  Key,
SendModifierKeys  Modifiers 
)
inlinestatic

Sends a set of key strokes to the Flight Sim window.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
KeyThe key to send.
ModifiersThe modifier keys to be held in combination with the specified Key.

For multiple modifiers use a bitwise or operation.

◆ SendKeyToFS() [4/8]

static void SendKeyToFS ( byte  ClassInstance,
Keys  Key,
SendModifierKeys  Modifiers 
)
inlinestatic

Sends a set of key strokes to the specified Class Instance of Flight Sim.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
KeyThe key to send. No not use modifiers here, use the parameter provided.
ModifiersThe modifier keys to be held in combination with the specified Key.

For multiple modifiers use a bitwise or operation.

◆ SendKeyToFS() [5/8]

static void SendKeyToFS ( Keys  Key,
Form  ReturnFocusToForm 
)
inlinestatic

Sends a set of key strokes to the Flight Sim window.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
KeyThe key to send. No not use modifiers here, use the parameter provided.
ReturnFocusToFormThe form to return focus to after the keys have been sent.

◆ SendKeyToFS() [6/8]

static void SendKeyToFS ( byte  ClassInstance,
Keys  Key,
Form  ReturnFocusToForm 
)
inlinestatic

Sends a set of key strokes to the specified Class Instance of Flight Sim.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
KeyThe key to send. No not use modifiers here, use the parameter provided.
ReturnFocusToFormThe form to return focus to after the keys have been sent.

◆ SendKeyToFS() [7/8]

static void SendKeyToFS ( Keys  Key,
SendModifierKeys  Modifiers,
Form  ReturnFocusToForm 
)
inlinestatic

Sends a set of key strokes to the Flight Sim window.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
KeyThe key to send. No not use modifiers here, use the parameter provided.
ModifiersThe modifier keys to be held in combination with the specified Key.

For multiple modifiers use a bitwise or operation.

Parameters
ReturnFocusToFormThe form to return focus to after the keys have been sent.

◆ SendKeyToFS() [8/8]

static void SendKeyToFS ( byte  ClassInstance,
Keys  Key,
SendModifierKeys  Modifiers,
Form  ReturnFocusToForm 
)
inlinestatic

Sends a set of key strokes to the specified Class Instance of Flight Sim.

In order for this to work the Flight Sim window will become the active window.

If you want focus to return to your application, pass a reference to the form to return to.

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
KeyThe key to send. No not use modifiers here, use the parameter provided.
ModifiersThe modifier keys to be held in combination with the specified Key.

For multiple modifiers use a bitwise or operation.

Parameters
ReturnFocusToFormThe form to return focus to after the keys have been sent.

◆ SetLocalDateTimeForClass()

static void SetLocalDateTimeForClass ( byte  ClassInstance,
DateTime  NewDateTime 
)
inlinestatic

Sets the current Local date and time set in the Flight Sim for a specific WideClient Instance.

Usually use the property "UTCDateTime".

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
NewDateTimeThe new date and time
Returns

◆ SetUTCDateTimeForClass()

static void SetUTCDateTimeForClass ( byte  ClassInstance,
DateTime  NewDateTime 
)
inlinestatic

Sets the current UTC date and time set in the Flight Sim. (aka ZULU time and GMT) for a specific WideClient Instance.

Usually use the property "UTCDateTime".

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
NewDateTimeThe new date and time

◆ StatisticsForClass()

static Statistics StatisticsForClass ( byte  ClassInstance)
inlinestatic

The statistics object for a specified Class Instance. Use this object to read various statistics about the connection

Parameters
ClassInstanceThe number of the Class Instance for which you want the statistics
Returns
The statistics object for the given class instance

◆ UserInputServicesForClass()

static UserInputServices UserInputServicesForClass ( Byte  ClassInstance)
inlinestatic

The active UserInputServices object for the specified Class Instance. Use this object to access facilities to set up Keystrokes and Joystick Button presses for your application. Also allows you to add a menu item into Flight Sim.

Parameters
ClassInstanceThe number of the Class Instance for which you want the input services
Returns
The UserInputServices for the given class instance

◆ WeatherServicesForClass()

static WeatherServices WeatherServicesForClass ( byte  ClassInstance)
inlinestatic

The active WeatherServices object for the specified Class Instance. Use this object to read and write weather.

Parameters
ClassInstanceThe number of the Class Instance for which you want the weather services
Returns
The WeatherServices for the given class instance

◆ WideClientForClass()

static bool WideClientForClass ( byte  ClassInstance)
inlinestatic

A boolean indicating if the connection is to WideClient.exe

Parameters
ClassInstanceThe number of the Class Instance to test for WideClient.
Returns

◆ WriteLVar() [1/2]

static void WriteLVar ( string  LVAR,
double  NewValue 
)
inlinestatic

Writes a new value to a local panel variable (L:VAR) in the flight sim

Parameters
LVARThe name of the variable to read. With or without the "L:" prefix
NewValueThe new value to write

◆ WriteLVar() [2/2]

static void WriteLVar ( byte  ClassInstance,
string  LVAR,
double  NewValue 
)
inlinestatic

Writes a new value to a local panel variable (L:VAR) in the flight sim

Parameters
ClassInstanceThe number of the Class Instance of WideClient you want to talk to.
LVARThe name of the variable to read. With or without the "L:" prefix
NewValueThe new value to write

Property Documentation

◆ AirportsDatabase

The active Airports Database object. Use this object to access data about airports

◆ AITrafficServices

The active AI Traffic Services object. Use this object to access data about AI aircraft.

◆ DLLVersion

Version DLLVersion
staticget

Returns the version of the FSUIPC Client DLL.

◆ FlightSimVersionConnected

FsVersion FlightSimVersionConnected
staticget

The version of Flight Simulator that FSUIPC is running in, or that WideFS is connected to.

◆ FSUIPCVersion

Returns the version of FSUIPC we are connected to.

◆ GroupsIsolatedToThread

bool GroupsIsolatedToThread
staticgetset

Sets/Gets whether or not groups are unique to threads or can be accessed via any thread.

If set to false a group created on one thread can be processed/deleted on a different thread.

If true, groups are isolated to the thread on which they were created. Groups created on one thread cannot be processed/deleted from another. Groups created on different threads can have the same name.

◆ IsConnectedToWideClient

bool IsConnectedToWideClient
staticget

A boolean indicating if the connection is to WideClient.exe

◆ IsOpen

bool IsOpen
staticget

Returns true is the connection is currently open.

◆ LocalDateTime

DateTime LocalDateTime
staticgetset

The current Local date and time set in the Flight Sim. Setting a new value changes the date/time in the simulator.

◆ PayloadServices

The active PayloadServices object. Use this object to access Payload and Fuel information on the current aircraft

◆ SendKeyFocusWaitTime

int SendKeyFocusWaitTime = 150
staticgetset

Sets the time (in milliseconds) that SendKeyToFS will wait for the focus to change to/from the Flight Sim window.

Default is 150ms.

◆ Statistics

The statistics object. Use this object to read various statistics about the connection

◆ UserInputServices

The active UserInputServices object. Use this object to access facilities to set up Keystrokes and Joystick Button presses for your application. Also allows you to add a menu item into Flight Sim.

◆ UTCDateTime

DateTime UTCDateTime
staticgetset

The current UTC date and time set in the Flight Sim. (aka ZULU time and GMT). Setting a new value changes the date/time in the simulator.

◆ WeatherServices

The active WeatherServices object. Use this object to read and write weather information