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.

How to send both a key event and ipc control?

Featured Replies

In P3D by pressing a joystick button, I need to both send a key event (release droppable objects) and activate the smoke-system via an ipc control. It is important that these actions are separate.

Can anyone help with this?

Hi Moonwolf

 

Welcome to LINDA. Do you have a particular aircraft in mind? You need to create a function in the aircraft's user.lua file (modules\linda\aircrafts\{your aircraft}\user.lua) along the lines of:

 

function DropSmoke

     ipc.control(66658,0)  -- droppable objects

     ipc.control(65559,0)  -- smoke toggle

end

 

You will find the correct FSX Control code and param by using the LINDA Tracer and test by clicking SEND. I have not be able to test as none of my default P3D aircraft have droppable tanks or smoke.

 

Then assign the function to the button required.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

Hi Moonwolf

 

Welcome to LINDA. Do you have a particular aircraft in mind? You need to create a function in the aircraft's user.lua file (modules\linda\aircrafts\{your aircraft}\user.lua) along the lines of:

 

function DropSmoke

     ipc.control(66658,0)  -- droppable objects

     ipc.control(65559,0)  -- smoke toggle

end

 

You will find the correct FSX Control code and param by using the LINDA Tracer and test by clicking SEND. I have not be able to test as none of my default P3D aircraft have droppable tanks or smoke.

 

Then assign the function to the button required.

 

Thanks Scotflieger.

 

The ipc control for Smoke is fine, but "Droppable objects" must be an event like "Shift+d" otherwise it will not be read by an external program through SimConnect, so I am told.

LINDA uses FSUIPC4 and not SimConnect to communicate with the flight sims. I do not know enough about SimConnect to advise you. Perhaps you should look if FSUIPC4 can provide what you need.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

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.