Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C#: All I want to do is send a "1" to AUTOPILOT_MASTER

Featured Replies

...that's it....I've read a lot of posts here, read the docs, but sending a simple "1" or "0" is about as clear as mud. Bear in mind, my programming skills are rusty at best.I don't expect anyone to write my code for me. However, like anything in life, some things are difficult if not impossible until you know how to do it.I know that I have to use "TransmitClientEvent", but what about all that other stuff to make this one line function properly?Ray

Ray S.

 

Check out my aviation portfolio:

http://scottshangar.net

At FSDeveloper.com, Simconnect forum, you can find several projects in C#. See if that can help you.Jos

I'm finishing up my first project for FSX, but after I release that, I'll wrap up my C# tutorial for SimConnect.

Well, here's how I did the Avionics master in c if it helps at all.SimConnect_MapClientEventToSimEvent(hSimConnect, KEY_EVENT_AVIONICS_TOGGLE, "TOGGLE_AVIONICS_MASTER"); SimConnect_TransmitClientEvent(hSimConnect, 0, KEY_EVENT_AVIONICS_TOGGLE, 0,SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); -------------------------------------------I'm sure someone will correct me if I'm wrong. But unless otherwise specified, you will use a 0 for a toggle switch. The dme select says to use (1,2), thusSimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_DME_SELECT, "DME_SELECT");SimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_DME_SELECT, 1,SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);andSimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_DME_SELECT, 2,SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);Hope this helps a little.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.