Jump to content
The simFlight Network Forums

Sending EVENT_ID to PMDX 737 NGX

Recommended Posts

First, create some constant definition for the PMDG Mouse Click codes: (Put these at the class or form level).

    Const MOUSE_FLAG_RIGHTSINGLE As UInteger = &H80000000UI
    Const MOUSE_FLAG_MIDDLESINGLE As UInteger = &H40000000UI
    Const MOUSE_FLAG_LEFTSINGLE As UInteger = &H20000000UI
    Const MOUSE_FLAG_RIGHTDOUBLE As UInteger = &H10000000UI
    Const MOUSE_FLAG_MIDDLEDOUBLE As UInteger = &H8000000UI
    Const MOUSE_FLAG_LEFTDOUBLE As UInteger = &H4000000UI

Events are also known as 'Controls'. My dll uses the term Control instead of Event.

Use the FSUIPCConnection.SendControlToFS() method to send the control/event ID. There is an Enum called PMDG_737_NGX_Control that you can use instead of calculating the event IDs.

You also need to send a parameter value. For PMDG controls, this is one of the mouse codes above. 

For example, this will simulate a single left mouse click on the left Flight Director switch:


The control will be sent immediately. There is no need to call Process().


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.