Jump to content
The simFlight Network Forums

John Dowson

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About John Dowson

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. John Dowson

    Active Window

    Yes, of course it needs that. Its pretty simple - the first line gets the handle of the window that needs the focus, the 2nd line sets the focus to the window with that handle. You need to create a file with those lines using a text editor, such as notepad++ (better) or notepad. John
  2. John Dowson

    Active Window

    I believe the exe is Prepar3d.exe (but open task manager with ctrl-alt-del to check), so it would be h = ext.gethandle("Prepar3d.exe") --name is program name incl .exe, or program title (as listed in Task Manager) ext.focus(h) John
  3. John Dowson

    Active Window

    Hi, you could try using a simple lua script, such as: h = ext.gethandle("name") --name is program name incl .exe, or program title (as listed in Task Manager) ext.focus(h) Save the above to your modules folder as, say, "usexxx.lua" where xxx suggests the program you are switching to, then, in FSUIPC, assign your button or key to Lua usexxx. Cheers, John
  4. John Dowson

    FSX steam

    my FSUIPC cant run in FSX steam, how to run it? What is the actual problem? Did it install ok (install log?)? Why can't you run it - what errors are you getting? Have you looked at the documentation in the documents folder? Regards, John
  5. John Dowson

    Registration Key not accepted

    FSUIPC5 is a different product to FSUIPC4, so you will need to buy a new key via Simmarket. Your wideFS key will still be valid. WideSever is now built into FSUIPC5. Regards, John
  6. John Dowson

    Registration key not accepted

    Hi jwillyf, as NaMc0 says, please remove you key ASAP. If people see this and start to use this key it will be blacklisted, NEVER post registration details please. All three parts of the key must be correct and those used at the time of purchase: name, email and key. Copy and paste from the original registration email. If you do not have this email, you can retrieve your details from your simmarket account. Regards, John
  7. John Dowson

    P3D4.3 FSUIPC related CTD

    There is a similar problem reported here in which the cause the loading of a 32-bit dll. However, the post is quite old and relates to SODE 1.5.3. Maybe worth checking though. Cheers, John
  8. John Dowson

    Landing rates

    That depends on what you want to do! You could, for example, read/monitor it in a lua script, in a C/C++ program, or use the logging facilities provided by FSUIPC to display the value in the log file, main window or title bar.
  9. John Dowson

    Landing rates

    Hi, you probably want offset 030C - from the offset status document: Vertical speed, copy of offset 02C8 whilst airborne, not updated whilst the “on ground” flag (0366) is set. Can be used to check hardness of touchdown (but watch out for bounces which may change this). There is a discussion on landing rate calculation here: https://www.avsim.com/forums/topic/524247-how-is-landing-rate-calculated/ Cheers, John
  10. Check the offset status document: 0x0020 (4 bytes) or 0x0b4c (2bytes). John
  11. John Dowson

    First attempt at LUA function

    Also i'm not sure that this will do what you want it to do. Control 1009 is the Traffic Density Toggle. Toggling this only works in one session, and if there is no known initial state then this will set/toggle the density to 100%. You may therefore want to add a 0 parameter or use control 1008 instead. There is a similar lua example included that may be useful - this freezes taxi-out AI traffic when you lower gear (or lower flaps) and releases when you land: -- NOTE: For use with FSUIPC 5 only -- This small plug in, which should be pre-loaded: for example, by adding -- [Auto] -- 1=Lua AIfreezer -- to your FSUIPC5.INI file. -- It freezes taxi-out AI traffic when you lower your gear, -- and releases them when you touch down. -- For aircraft with non-retractable gear, it checks the state of -- the Flaps instead, expecting full flaps for landing. (amend where -- noted for other flap settings). function GroundCheck(off, val) if ipc.val ~= 0 then ipc.control(1149) -- Freeze AI off if user landed ipc.log("AI taxiout traffic released") end end function GearCheck(off, val) if val >= 16383 and ipc.readUW(0x0366) == 0 then ipc.control(1150) -- Freeze AI on if gear just lowered (whilst in the air) ipc.log("AI taxiout traffic frozen") end end function FlapsCheck(off, val) -- See if gear is fixed first: if ipc.readUB(0x060C) == 0 then if val >= 16383 and ipc.readUW(0x0366) == 0 then ipc.control(1150) -- Freeze AI on if now full flaps set when in the air ipc.log("AI taxiout traffic frozen") end end end event.offset(0x0366, "UW", "GroundCheck") event.offset(0x0BE8, "UD", "GearCheck") event.offset(0x0BDC, "UD", "FlapsCheck") John
  12. John Dowson

    First attempt at LUA function

    I think you want offset 0366, not 0336. Try with event.offset(0x0366, "UW", "trafficoff") John *update* You are also missing an end statement for the if: function trafficoff(offset, value) if value == 0 then ipc.control(1009) ipc.log("AI traffic turned off") end end event.offset(0x0366, "UW", "trafficoff")
  13. John Dowson

    FSUIPC Saitek X56 Issue

    The logging lines have been added to the ini file - you just need to start the sim and supply the log file.
  14. What script is that? If its a Linda script, then you should probably ask in the Linda sub-forum (or whoever/wherever provided the script). If you require help with FSUIPC, it is better to start a new thread with a full description of the issues you are facing (flight sim? Assigning from/to whatr? ini/log files? etc), rather than hijacking an existing thread. Cheers, John
  15. John Dowson

    FSUIPC Saitek X56 Issue

    You will need to add some logging options to get more info. However, I am travelling today & tomorrow and do not have access to my windows machines so cannot let you know until Friday. Pete is also back tomorrow (or maybe Friday) who may pick this up and give you further advice. In the meantime, can you confirm that you have disconnected your devices & uninstalled all saitek devices, drivers and software (from the control panel), then reboot and connect your devices (which should install the standard windows drivers, not the Saitek ones). If not, please do this first. Cheers, John

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.