Jump to content
The simFlight Network Forums

Georgy

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Russia

Georgy's Achievements

Rookie

Rookie (2/14)

  • Dedicated Rare
  • Collaborator Rare
  • First Post Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. Thank You.) The letter would be more convenient when changing different joysticks, because it is attached to each device, even when it is disabled.
  2. I'm sorry. Can You help me? I don't know which lines I can delete, if i need one action (hold press), or 2 actions (hold press and single press) only.
  3. I was able to do it. Assigned "gear up" to physical lever without lua script. In tripleuse.lua assigned only one action (hold press): move virtual lever to position "gear off" after 10 seconds when the physical lever is up.
  4. B=TCA YOKE BOEING B.GUID={E05CFE20-D530-11EC-8003-444553540000} Can I use letter "B" at "joy' line of Tripleuse.lua? Or only number?
  5. time1 = ipc.elapsedtime() time2 = 0 if timebutton(false) then -- First press / release counts: see if there's another if timebutton(true) then -- got another press in time, look for release if timebutton(false) then -- this was a double press, send VIEW RIGHT ipc.control() ignorepress = true -- ignore the next press we receive, i.e. the 2nd in a double-press end else -- This was a single press, send VIEW LEFT ipc.control(67279) ignorepress = false end else -- This was a longer press, send VIEW FORWARD ipc.control(65861) end What strings (lines) can I delete?
  6. I'm sorry... I used a translator I would like to do this: 1. In a Boeing 737, I do gear up. 2. Wheels retract 3. After 10 seconds, the gear lever automatically switches to off mode.
  7. Thank You! Tell me please how to implement such a function: I raise the chassis crane in 737 (Thrustmaster Boeing), the lever presses the button all the time. After 10 seconds, the second action is activated: the lever itself is transferred to the off position. Sorry for my bad English)
  8. I meant, did I enter the action correctly in brackets and quotes? Shouldn't there be numbers?
  9. Please, check this code): joy = 3 btn = 8 interval = 100 -- 1/2 second press, gap, press limits ignorepress = false -- Function to time the button being pressed or left released -- Allow only up to "interval" till decide no change local function timebutton(test) while true do time2 = ipc.elapsedtime() if (time2 - time1) > interval then ignorepress = false return false end if ipc.testbutton(joy, btn) == test then time1 = time2 return true end ipc.sleep(20) end end function buttonpress(j, b, du) if ignorepress then ignorepress = false return end -- Note time button was pressed time1 = ipc.elapsedtime() time2 = 0 if timebutton(false) then -- First press / release counts: see if there's another if timebutton(true) then -- got another press in time, look for release if timebutton(false) then -- this was a double press, send VIEW RIGHT ipc.control() ignorepress = true -- ignore the next press we receive, i.e. the 2nd in a double-press end else -- This was a single press, send VIEW LEFT ipc.execPreset("PMDG_B737-7_FUEL_CUT_OFF_LEVER1_UP") ignorepress = false end else -- This was a longer press, send VIEW FORWARD ipc.execPreset("PMDG_B737-7_FUEL_CUT_OFF_LEVER1_DN") end end -- Enable event on button being pressed (only) event.button(joy, btn, 1, "buttonpress")
  10. Sorry, I don't understand(( Can You write example? Thank You!
  11. And how I can add another controller to the same script? For example: joy = 3 btn = 2 joy = 4 btn = 5 It will be work? Or I must to do 2 tripleuse.lua for my controllers?
  12. Thank You, John! I thought maybe you did another way) AT Disengage (67279) and TOGA (65861) I did! Thank you! Code: joy = 3 btn = 2 interval = 100 -- 1/2 second press, gap, press limits ignorepress = false -- Function to time the button being pressed or left released -- Allow only up to "interval" till decide no change local function timebutton(test) while true do time2 = ipc.elapsedtime() if (time2 - time1) > interval then ignorepress = false return false end if ipc.testbutton(joy, btn) == test then time1 = time2 return true end ipc.sleep(20) end end function buttonpress(j, b, du) if ignorepress then ignorepress = false return end -- Note time button was pressed time1 = ipc.elapsedtime() time2 = 0 if timebutton(false) then -- First press / release counts: see if there's another if timebutton(true) then -- got another press in time, look for release if timebutton(false) then -- this was a double press, send VIEW RIGHT ipc.control() ignorepress = true -- ignore the next press we receive, i.e. the 2nd in a double-press end else -- This was a single press, send VIEW LEFT ipc.control(67279) ignorepress = false end else -- This was a longer press, send VIEW FORWARD ipc.control(65861) end end -- Enable event on button being pressed (only) event.button(joy, btn, 1, "buttonpress") How do I manage the cut off valves? They work as presets. I don't know what code to enter. Unfortunately, the github page https://github.com/joeherwig/msfs-fsuipc-lua-scripts is not working.
  13. Hello!I want to turn on the fuel valve cut off in 737 pmdg with a short press of the button and turn it off by long pressing the same button. Same with autothrottle disengage (short press) and TOGA (long press) How to do it?
  14. Sorry I typed BrakeReleaseThreshold=0 only for Cessna. Another aircrafts have "BrakeReleaseThreshold=75". It's working!
  15. Hello, Pete! I type "BrakeReleaseThreshold=0" in [JoystickCalibration.Accusim cessna 172 1] (In [General] section value is 75). After that I press brake pedal, and Parking brakes are released in all my aircrafts. How can I do it only for Cessna?
×
×
  • 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.