Is there a command line reference for the PEClient?
I'm interesting in building a launcher that launches FSX/P3D using a .FLT/FXML file and also launches the PEClient and have it connect automatically.
Thanks for any assistance.
Dustin
Command Line Reference
-
- Posts: 9939
- Joined: Sat Oct 09, 2010 8:38 pm
- Location: Pompton Plains, NJ
- Contact:
Re: Command Line Reference
There isn't a command line API. However, you can fire a simconnect event called "REDBIRD.PE_CONNECT" and that will cause it to connect using the last set of good credentials.
Re: Command Line Reference
That will work.
Is there a disconnect event as well?
Any other events or properties?
Thanks!
Dustin
Is there a disconnect event as well?
Any other events or properties?
Thanks!
Dustin
-
- Posts: 9939
- Joined: Sat Oct 09, 2010 8:38 pm
- Location: Pompton Plains, NJ
- Contact:
Re: Command Line Reference
There isn't a disconnect event for FSX/P3D yet, (we haven't had a need for it). There is a PILOTEDGE.PTT_ON and PILOTEDGE.PTT_OFF you can trigger, though.
Re: Command Line Reference
Thanks Keith,
I tried using these three events this evening.
PILOTEDGE.PTT_ON worked, but it left the transmit button stuck on. Trying to clear this with the keyboard or yoke PTT did not work.
PILOTEDGE.PTT_OFF did not work. This was attempted just after using the PTT_ON event.
REDBIRD.PE_CONNECT did not work. FSX and PE Client were running.
I'm using the managed version of the SimConnect client in the FSX SP2 SDK.
Here's the code I'm using - any suggestions?
I tried using these three events this evening.
PILOTEDGE.PTT_ON worked, but it left the transmit button stuck on. Trying to clear this with the keyboard or yoke PTT did not work.
PILOTEDGE.PTT_OFF did not work. This was attempted just after using the PTT_ON event.
REDBIRD.PE_CONNECT did not work. FSX and PE Client were running.
I'm using the managed version of the SimConnect client in the FSX SP2 SDK.
Here's the code I'm using - any suggestions?
Code: Select all
try
{
simconnect.MapClientEventToSimEvent(REDBIRD.PE_CONNECT, "REDBIRD.PE_CONNECT");
simconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUPS.GROUP0, REDBIRD.PE_CONNECT, false);
simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, REDBIRD.PE_CONNECT, 0, NOTIFICATION_GROUPS.GROUP0, SIMCONNECT_EVENT_FLAG.DEFAULT);
}
catch (COMException ex)
{
MessageBox.Show(ex.Message);
}
-
- Posts: 9939
- Joined: Sat Oct 09, 2010 8:38 pm
- Location: Pompton Plains, NJ
- Contact:
Re: Command Line Reference
my mistake, the ptt off should be PILOTEDGE.PTT_RELEASE
Re: Command Line Reference
PILOTEDGE.PTT_RELEASE worked - thanks!
Alright - so, I'm still looking for a way to programmatically get the PE client to connect. Does the REDBIRD.PE_CONNECT event need some Redbird software installed to register the event?
Dustin
Alright - so, I'm still looking for a way to programmatically get the PE client to connect. Does the REDBIRD.PE_CONNECT event need some Redbird software installed to register the event?
Dustin