Search the Community
Showing results for tags 'function'.
Found 2 results
-
Hello, Could you help me please ? How can i use functions who are in actions.lua through FSUIPC ? actions.lua from : http://www.avsim.com/topic/341971-pmdg-737-ngx-module-47-new/ Example in FSUIPC : Key presses : SET : CTRL + J >>> NGX_PUMP1_AFT_toggle or Buttons + Switches : SET : 1 >>> NGX_PUMP1_AFT_toggle Thanks for help. PS : i have create a specific FSUIPC macro for the test, but i dont want do this for each function. PMDGBaseVar = 0x00011000 -- 69632 PMDG_ClkL = 0x20000000 -- 536870912 PMDG_ClkR = 0x80000000 -- -2147483648 PMDG_dec = 0x00002000 -- 8192 PMDG_inc = 0x00004000 -- 16384 PMDG_RelL = 0x00020000 -- 131072 PMDG_RelM = 0x00040000 -- 262144 PMDG_RelR = 0x00080000 -- 524288 function NGX_PUMP1_AFT_off () if ipc.readLvar('ngx_switch_37_a') ~= 0 then ipc.control(PMDGBaseVar+37, PMDG_ClkR) DspShow("PMP1", "Aoff") end end function NGX_PUMP1_AFT_on () if ipc.readLvar('ngx_switch_37_a') ~= 100 then ipc.control(PMDGBaseVar+37, PMDG_ClkL) DspShow("PMP1", "A on") end end if ipc.readLvar('ngx_switch_37_a') == 100 then NGX_PUMP1_AFT_off() else NGX_PUMP1_AFT_on() end PS : i have also test an include in lua MACRO file !? But dont still work ? require("scripts.actions") NGX_PUMP1_AFT_toggle() end Thanks for advance; Sky
-
Hello, I use the Function keys to assign views in ChasePlane (for example F4 is Left MCDU view; F5 is MCDU right view; F12 is overhead view). However, I also use Ctrl+F11 for Active Sky and Ctrl+F12 for GSX. This used to work fine in Ezdok. However, in ChasePlane, even though Ctrl is held down (so I'm pressing Ctrl+F12) it switches to the views assigned to the relevant function key as if I was pressing it on its own. So when I request GSX from inside the cockpit, I get the overhead view. Is there anyway to prevent this happening? Thank you. Adam
- 3 replies
-
- control assignment
- keys
-
(and 2 more)
Tagged with: