Jump to content
The simFlight Network Forums

Search the Community

Showing results for tags 'python'.

The search index is currently processing. Current results may not be complete.
  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • MyTraffic Support Forum
    • FeelThere Support Forums
    • FS Commander Support Forum
    • Flying W Simulation
    • AConstable Traffic Sounds Support Forum
    • Fabio Merlo Products Support Forum
    • Elite-Air Studio Support Forum
    • Nikola Jovanovic Support Forum
    • Intrasystems Support Forum
    • Taburet & DanVFR Support Forum
    • Environ Scenery
  • simFlight DE
  • FS MAGAZIN (DE)
  • simRussia

Calendars

  • Community Calendar

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 2 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. Hello, In the accesibility software I'm developing, I've been asked to interface with A2A aircraft. Many of the specific settings that A2A uses can be accessed with local panel variables. My question is, what's the best way to do this? I need to be able to read several variables from the sim and then pass the data to my software, I assume with a fsuipc offset? I may also need to write variables, based on user input from my software. I know I can do a direct read of an l:var with fsuipc offsets, but I can't quite work out how to do it with the pyuipc module in python. I've also read that this can be slow, especially if I'm reading a lot of variables. Is it best to do this with a lua script and then just write the data to some of the user defined offsets that my software can then read? I assume that someone will need a registered FSUIPC version for a lua script to work, correct? Any pointers would be apreciated.
×
×
  • 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.