Search the Community
Showing results for tags 'sdk'.
Found 4 results
Hi, is there a way of directly sending events to PMDG through the FSUIPC_Write call ? My program can successfully toggle the Pause control so I know it works using FSUIPC offset 0x262. FSUIPC_Write(0x262, 2, 1, &dwResult); FSUIPC_Process(&dwResult); But it doesn't work if I try to use 0x1123D, which is the event for Left CDU letter 'A' with the LEFT_MOUSE_SINGLE parameter 0x20000000 i.e. FSUIPC_Write(0x1123D, 4, 0x20000000, &dwResult); FSUIPC_Process(&dwResult); I realise I can do it indirectly via calling a Lua script through 0xd6c & 0xd70 or by talking directly with SimConnect. -------------------------------------- P3D v220.127.116.1175 SimConnect v18.104.22.168 FSUIPC v4.959 hidmacros v22.214.171.1240
lidders posted a topic in User ContributionsHi, although I'm pretty new to all this I've managed to control the CDU through the PMDG offsets using both the FSUIPC Buttons & Switches page & through a Lua script. The info is out there but in a few different places so I though I'd post this for reference: Open up PMDG\PMDG 737 NGX\SDK\PMDG_NGX_SDK.h Find the address to write to by adding your event to THIRD_PARTY_EVENT_ID_MIN #define THIRD_PARTY_EVENT_ID_MIN 0x00011000 // equals to 69632 #define EVT_CDU_L_A (THIRD_PARTY_EVENT_ID_MIN + 573) So to write the letter 'A' to the CDU the address is 70205. In Addons/FSUIPC/Buttons+Switches under 'Control sent when button pressed' select <custom Control> & enter 70205. So far so obvious. What was not immediately obvious was the parameter. You might expect to just send a '1'. However, although this appears to work the first time, if you try to send another 'A' char it doesn't. You need to send the left mouse single click value as defined here in the header: #define MOUSE_FLAG_LEFTSINGLE 0x20000000 // 536870912 in decimal I then went on to do this through a Lua script that was called from the external hidmacros program: CDU.lua (Saved in FSUIPC folder: P3Dv3\Modules) : --[[ LUA Script that gets called by a hidmacros script with the key value pressed on the CDU. In hidmacros use the following script: HIDMacros.setFSUIPCInt &H0D6C,4,70205 HIDMacros.setFSUIPCString &H0D70,40,"Lua CDU" Note: The 1st line writes 70205, 'A' key to the FSUIPC ipcPARAM variable. Replace 'CDU' with the name of your Lua script (without the .lua extension) --]] LEFT_MOUSE_SINGLE = 0x20000000 key = ipcPARAM ipc.log("CDU: Sending " .. key) ipc.control(key, LEFT_MOUSE_SINGLE) -------------------------------------- P3D v126.96.36.19975 SimConnect v188.8.131.52 FSUIPC v4.959 hidmacros v184.108.40.2060
Hello Guys, I would like to use FSUIPC with Python 3.X Can please anyone help to do this? The SDK is for Python 2.7 and win32. Is there any chance to compile the module for Python 3.5 and amd64? Is there another way to geht the pyuipc module for Pyhon 3.X? Where should I start? Is there anythind out which does this? Thank you very much, Andreas
Hello, I have FSUIPC with Prepar3D and I want to create a program to get the Prepar3D's information through FSUIPC. To do this, I would like to use Microsoft Visual C++ 2010 and the FSUIPC SDK. The problem is that I don't usually use Microsoft Visual C++ and I don't know how to integrate the SDK. I don't really know what to do with the .h .c .lib and .rc files... Can anyone help me please? Ben