Jump to content

Search the Community

Showing results for tags 'sdk'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • FeelThere Support Forums
    • Fabio Merlo Products Support Forum
    • Nikola Jovanovic Support Forum
    • Intrasystems Support Forum

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 6 results

  1. Hi all, Well, after a full day making white hairs, I think I need your help with FSUIPC and keystrokes sent from a program. At this time I am trying to understand why ProsimUtils has issues to control GSX : commands are sent from the CDU to ProsimUtils, and then to P3D through FSUIPC/WideClient. Sometimes, the command CTRL+SHIFT+F12 opens the usual FSX window, but it's rare, and the command following the first one (1 or 2 to select an option) does nothing ... After that, if I want to open GSX window again, it simply doesn't work. All commands are registered in FSUIPC log, so they are well received but no event. It's pretty much the same issue than the one reported by Ramon here : https://forum.simflight.com/topic/91365-prosimutils-181-simconnect-window/ I coded a small python script to send keystrokes to Prepar3D through FSUIPC and WideClient. And I noticed something really strange. I would be glad if someone can comment or point me to the right direction. The keystroke used is simple : it's S to change the view. If I execute the script, the keystroke is registered by FSUIPC and I can see it in the log, but nothing happens. If I execute the script two times, and with around 0.5-1s between each execution, the keystroke is registered two times by FSUIPC, but this time (and unfortunately not each time), the view is changed (and only 1 time, which is fine in fact). I can't see what's wrong with my script. Here it is : import pyuipc pyuipc.open(pyuipc.SIM_P3D64) pyuipc.write([(0x3110, 'u', 1070), (0x3114, 'u', 2131)]) pyuipc.close() Pretty simple, isn't it ^^ ? And the logging messages : 351906 WRITEex 330A, 2 bytes: D2 07 .. 352062 WRITEex 3110, 4 bytes: 2E 04 00 00 .... # first run 352062 WRITEex 3114, 4 bytes: 53 08 00 00 S... 352531 WRITEex 3110, 4 bytes: 2E 04 00 00 .... # second run after 0.5s-1s 352531 WRITEex 3114, 4 bytes: 53 08 00 00 S... 353718 *** EVENT: Cntrl= 65567 (0x0001001f), Param= 0 (0x00000000) VIEW_MODE I use Prepar3D v5.1 HF1, with different sceneries and add-ons (UTLive2 beta, ASP3D, Prosim737, FSUIPC6.11). Python 3.7 is used with pyuipc installed from FSUIPC/SDK folder. I am experienced with Python, but not with FSUIPC SDK, so I probably do something wrong and can't see what it is ... Thanks for your help !! Olivier
  2. @Mouseviator has kindly provided an updated java SDK for FSUIPC. This should be more efficient than the existing SDKs as requests are processed in batch, rather than individually. Please see . The new SDK with documentation and examples is available from @Mouseviator web site: https://mouseviator.com/fsuipc-java-sdk/ Also available from github: https://github.com/Mouseviator/FSUIPC-Java This package has been added to the SDK in the FSUIPC6 installer (after version 6.0.10). John
  3. 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 v3.4.18.19475 SimConnect v3.4.0.0 FSUIPC v4.959 hidmacros v2.3.0.710
  4. Hi, 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 &amp;H0D6C,4,70205 HIDMacros.setFSUIPCString &amp;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 v3.4.18.19475 SimConnect v3.4.0.0 FSUIPC v4.959 hidmacros v2.3.0.710
  5. 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
  6. 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
×
×
  • 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.