Jump to content
The simFlight Network Forums

Jorik

Members
  • Posts

    10
  • Joined

  • Last visited

Jorik's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Great lets go try this. Thanks for the help.
  2. Hmmmm, sorry for my bad description of my intentions :oops: What I was trying to do is create a LUA file like the one EmileB createde for the PMDG NGX and use is to assign buttons of my CDU II to the FMC of the Level D 767. I would love to no how this works, this can be handy for future addons. But great thanks for sorting out my main problem with the CDU II key presses.
  3. Hi there guys, I was wondering if somebody could help me out on how to get the Lua codes from the LVD767 for operating the FMC with the CDU II from Vrinsight. I know EmileB did this for the PMDG 737NGX and it works like a charm trough FSUIPC. I now operate the LVD767 CDU trough FSUIPC (with the help of mouse macro's) aswell but most of the times I need to press a button on the CDU two times before it gives a reaction, with the PMDG trough LUA this isn't the case. I tried the LUA tutorial found here on the forum but it logs key press etc... but no values from the planes panels. I hope somebody could help me out on this. (I posted this one on the Linda Forum over at AVSIM aswell)
  4. Hi Pete, I was trying to do this in Fullscreen. But when I save the flight it comes back to the CDU but way to big. And NGX after HotFix4 has a problem with saving and loading the previous flight so that ends the save option to, its temporary offcourse until SP1.
  5. Thank you so much. This did the trick. Here I have a new little question. Is there a way to program something so that the panel automatically moves an resizes to the CDU screen. This would be so easy.
  6. Hi there, I connected my vrinsight CDU2 to my FSUIPC via the entry in the ini file of FSUIPC. I also added a LUA file to the Modules map. I did assign every button with the buttons tab from FSUIPC and selected FSControl and the name of the LUA with the corresponding number in the parameter box. Now every button of my CDU is doing the right action. The only problem is that I need to press every button two times. Can somebody help me out? At the bottom is the LUA enetery. if ipcPARAM == 101 then ipc.control(70166, 536870912) -- LSK 1L ipc.control(70166, 131072) elseif ipcPARAM == 102 then ipc.control(70167, 536870912) -- LSK 2L ipc.control(70167, 131072) elseif ipcPARAM == 103 then ipc.control(70168, 536870912) -- LSK 3L ipc.control(70168, 131072) elseif ipcPARAM == 104 then ipc.control(70169, 536870912) -- LSK 4L ipc.control(70169, 131072) elseif ipcPARAM == 105 then ipc.control(70170, 536870912) -- LSK 5L ipc.control(70170, 131072) elseif ipcPARAM == 106 then ipc.control(70171, 536870912) -- LSK 6L ipc.control(70171, 131072) elseif ipcPARAM == 107 then ipc.control(70172, 536870912) -- LSK 1R ipc.control(70172, 131072) elseif ipcPARAM == 108 then ipc.control(70173, 536870912) -- LSK 2R ipc.control(70173, 131072) elseif ipcPARAM == 109 then ipc.control(70174, 536870912) -- LSK 3R ipc.control(70174, 131072) elseif ipcPARAM == 110 then ipc.control(70175, 536870912) -- LSK 4R ipc.control(70175, 131072) elseif ipcPARAM == 111 then ipc.control(70176, 536870912) -- LSK 5R ipc.control(70176, 131072) elseif ipcPARAM == 112 then ipc.control(70177, 536870912) -- LSK 6R ipc.control(70177, 131072) elseif ipcPARAM == 113 then ipc.control(70178, 536870912) -- INIT REF ipc.control(70178, 131072) elseif ipcPARAM == 114 then ipc.control(70179, 536870912) -- RTE ipc.control(70179, 131072) elseif ipcPARAM == 115 then ipc.control(70180, 536870912) -- CLB ipc.control(70180, 131072) elseif ipcPARAM == 116 then ipc.control(70181, 536870912) -- CRZ ipc.control(70181, 131072) elseif ipcPARAM == 117 then ipc.control(70182, 536870912) -- DES ipc.control(70182, 131072) elseif ipcPARAM == 118 then ipc.control(70183, 536870912) -- MENU ipc.control(70183, 131072) elseif ipcPARAM == 119 then ipc.control(70184, 536870912) -- LEGS ipc.control(70184, 131072) elseif ipcPARAM == 120 then ipc.control(70185, 536870912) -- DEP ARR ipc.control(70185, 131072) elseif ipcPARAM == 121 then ipc.control(70186, 536870912) -- HOLD ipc.control(70186, 131072) elseif ipcPARAM == 122 then ipc.control(70187, 536870912) -- PROG ipc.control(70187, 131072) elseif ipcPARAM == 123 then ipc.control(70188, 536870912) -- EXEC ipc.control(70188, 131072) elseif ipcPARAM == 124 then ipc.control(70189, 536870912) -- N1 LIMIT ipc.control(70189, 131072) elseif ipcPARAM == 125 then ipc.control(70190, 536870912) -- FIX ipc.control(70190, 131072) elseif ipcPARAM == 126 then ipc.control(70191, 536870912) -- PREV PAGE ipc.control(70191, 131072) elseif ipcPARAM == 127 then ipc.control(70192, 536870912) -- NEXT PAGE ipc.control(70192, 131072) elseif ipcPARAM == 128 then ipc.control(70193, 536870912) -- 1 ipc.control(70193, 131072) elseif ipcPARAM == 129 then ipc.control(70194, 536870912) -- 2 ipc.control(70194, 131072) elseif ipcPARAM == 130 then ipc.control(70195, 536870912) -- 3 ipc.control(70195, 131072) elseif ipcPARAM == 131 then ipc.control(70196, 536870912) -- 4 ipc.control(70196, 131072) elseif ipcPARAM == 132 then ipc.control(70197, 536870912) -- 5 ipc.control(70197, 131072) elseif ipcPARAM == 133 then ipc.control(70198, 536870912) -- 6 ipc.control(70198, 131072) elseif ipcPARAM == 134 then ipc.control(70199, 536870912) -- 7 ipc.control(70199, 131072) elseif ipcPARAM == 135 then ipc.control(70200, 536870912) -- 8 ipc.control(70200, 131072) elseif ipcPARAM == 136 then ipc.control(70201, 536870912) -- 9 ipc.control(70201, 131072) elseif ipcPARAM == 137 then ipc.control(70202, 536870912) -- . ipc.control(70202, 131072) elseif ipcPARAM == 138 then ipc.control(70203, 536870912) -- 0 ipc.control(70203, 131072) elseif ipcPARAM == 139 then ipc.control(70204, 536870912) -- +/ ipc.control(70204, 131072) elseif ipcPARAM == 140 then ipc.control(70205, 536870912) -- A ipc.control(70205, 131072) elseif ipcPARAM == 141 then ipc.control(70206, 536870912) -- B ipc.control(70206, 131072) elseif ipcPARAM == 142 then ipc.control(70207, 536870912) -- C ipc.control(70207, 131072) elseif ipcPARAM == 143 then ipc.control(70208, 536870912) -- D ipc.control(70208, 131072) elseif ipcPARAM == 144 then ipc.control(70209, 536870912) -- E ipc.control(70209, 131072) elseif ipcPARAM == 145 then ipc.control(70210, 536870912) -- F ipc.control(70210, 131072) elseif ipcPARAM == 146 then ipc.control(70211, 536870912) -- G ipc.control(70211, 131072) elseif ipcPARAM == 147 then ipc.control(70212, 536870912) -- H ipc.control(70212, 131072) elseif ipcPARAM == 148 then ipc.control(70213, 536870912) -- I ipc.control(70213, 131072) elseif ipcPARAM == 149 then ipc.control(70214, 536870912) -- J ipc.control(70214, 131072) elseif ipcPARAM == 150 then ipc.control(70215, 536870912) -- K ipc.control(70215, 131072) elseif ipcPARAM == 151 then ipc.control(70216, 536870912) -- L ipc.control(70216, 131072) elseif ipcPARAM == 152 then ipc.control(70217, 536870912) -- M ipc.control(70217, 131072) elseif ipcPARAM == 153 then ipc.control(70218, 536870912) -- N ipc.control(70218, 131072) elseif ipcPARAM == 154 then ipc.control(70219, 536870912) -- O ipc.control(70219, 131072) elseif ipcPARAM == 155 then ipc.control(70220, 536870912) -- P ipc.control(70220, 131072) elseif ipcPARAM == 156 then ipc.control(70221, 536870912) -- Q ipc.control(70221, 131072) elseif ipcPARAM == 157 then ipc.control(70222, 536870912) -- R ipc.control(70222, 131072) elseif ipcPARAM == 158 then ipc.control(70223, 536870912) -- S ipc.control(70223, 131072) elseif ipcPARAM == 159 then ipc.control(70224, 536870912) -- T ipc.control(70224, 131072) elseif ipcPARAM == 160 then ipc.control(70225, 536870912) -- U ipc.control(70225, 131072) elseif ipcPARAM == 161 then ipc.control(70226, 536870912) -- V ipc.control(70226, 131072) elseif ipcPARAM == 162 then ipc.control(70227, 536870912) -- W ipc.control(70227, 131072) elseif ipcPARAM == 163 then ipc.control(70228, 536870912) -- X ipc.control(70228, 131072) elseif ipcPARAM == 164 then ipc.control(70229, 536870912) -- Y ipc.control(70229, 131072) elseif ipcPARAM == 165 then ipc.control(70230, 536870912) -- Z ipc.control(70230, 131072) elseif ipcPARAM == 166 then ipc.control(70231, 536870912) -- SP ipc.control(70231, 131072) elseif ipcPARAM == 167 then ipc.control(70232, 536870912) -- DEL ipc.control(70232, 131072) elseif ipcPARAM == 168 then ipc.control(70233, 536870912) -- / ipc.control(70233, 131072) elseif ipcPARAM == 169 then ipc.control(70234, 536870912) -- CLR ipc.control(70234, 131072) end
  7. Hi there guys, I'm reading through the forum for a a few hours but I can't really find a help in where to start. I would love to create a LUA script so I can assign my CDU buttons to the keypress menu in to FSUIPC. I found the logs for all the CDU buttons so I hope its not really a big problem. Please note: Thanks to EmileB for the LUA file. -- ## CDU ############### function NGX_CDU_LSK_1L () ipc.control(70166, 536870912) end function NGX_CDU_LSK_2L () ipc.control(70167, 536870912) end function NGX_CDU_LSK_3L () ipc.control(70168, 536870912) end function NGX_CDU_LSK_4L () ipc.control(70169, 536870912) end function NGX_CDU_LSK_5L () ipc.control(70170, 536870912) end function NGX_CDU_LSK_6L () ipc.control(70171, 536870912) end function NGX_CDU_LSK_1R () ipc.control(70172, 536870912) end function NGX_CDU_LSK_2R () ipc.control(70173, 536870912) end function NGX_CDU_LSK_3R () ipc.control(70174, 536870912) end function NGX_CDU_LSK_4R () ipc.control(70175, 536870912) end function NGX_CDU_LSK_5R () ipc.control(70176, 536870912) end function NGX_CDU_LSK_6R () ipc.control(70177, 536870912) end function NGX_CDU_INIT_REF () ipc.control(70178, 536870912) end function NGX_CDU_RTE () ipc.control(70179, 536870912) end function NGX_CDU_CLB () ipc.control(70180, 536870912) end function NGX_CDU_CRZ () ipc.control(70181, 536870912) end function NGX_CDU_DES () ipc.control(70182, 536870912) end function NGX_CDU_MENU () ipc.control(70183, 536870912) end function NGX_CDU_LEGS () ipc.control(70184, 536870912) end function NGX_CDU_DEP_ARR () ipc.control(70185, 536870912) end function NGX_CDU_HOLD () ipc.control(70186, 536870912) end function NGX_CDU_PROG () ipc.control(70187, 536870912) end function NGX_CDU_EXEC () ipc.control(70188, 536870912) end function NGX_CDU_N1_LIMIT () ipc.control(70189, 536870912) end function NGX_CDU_FIX () ipc.control(70190, 536870912) end function NGX_CDU_PREV_PAGE () ipc.control(70191, 536870912) end function NGX_CDU_NEXT_PAGE () ipc.control(70192, 536870912) end function NGX_CDU_1 () ipc.control(70193, 536870912) end function NGX_CDU_2 () ipc.control(70194, 536870912) end function NGX_CDU_3 () ipc.control(70195, 536870912) end function NGX_CDU_4 () ipc.control(70196, 536870912) end function NGX_CDU_5 () ipc.control(70197, 536870912) end function NGX_CDU_6 () ipc.control(70198, 536870912) end function NGX_CDU_7 () ipc.control(70199, 536870912) end function NGX_CDU_8 () ipc.control(70200, 536870912) end function NGX_CDU_9 () ipc.control(70201, 536870912) end function NGX_CDU_Period () ipc.control(70202, 536870912) end function NGX_CDU_0 () ipc.control(70203, 536870912) end function NGX_CDU_Sign () ipc.control(70204, 536870912) end function NGX_CDU_A () ipc.control(70205, 536870912) end function NGX_CDU_B () ipc.control(70206, 536870912) end function NGX_CDU_C () ipc.control(70207, 536870912) end function NGX_CDU_D () ipc.control(70208, 536870912) end function NGX_CDU_E () ipc.control(70209, 536870912) end function NGX_CDU_F () ipc.control(70210, 536970912) end function NGX_CDU_G () ipc.control(70211, 536870912) end function NGX_CDU_H () ipc.control(70212, 536870912) end function NGX_CDU_I () ipc.control(70213, 536870912) end function NGX_CDU_J () ipc.control(70214, 536870912) end function NGX_CDU_K () ipc.control(70215, 536870912) end function NGX_CDU_L () ipc.control(70216, 536870912) end function NGX_CDU_M () ipc.control(70217, 536870912) end function NGX_CDU_N () ipc.control(70218, 536870912) end function NGX_CDU_O () ipc.control(70219, 536870912) end function NGX_CDU_P () ipc.control(70220, 536870912) end function NGX_CDU_Q () ipc.control(70221, 536870912) end function NGX_CDU_R () ipc.control(70222, 536870912) end function NGX_CDU_S () ipc.control(70223, 536870912) end function NGX_CDU_T () ipc.control(70224, 536870912) end function NGX_CDU_U () ipc.control(70225, 536870912) end function NGX_CDU_V () ipc.control(70226, 536870912) end function NGX_CDU_W () ipc.control(70227, 536870912) end function NGX_CDU_X () ipc.control(70228, 536870912) end function NGX_CDU_Y () ipc.control(70229, 536870912) end function NGX_CDU_Z () ipc.control(70230, 536870912) end function NGX_CDU_Space () ipc.control(70231, 536870912) end function NGX_CDU_DEL () ipc.control(70232, 536870912) end function NGX_CDU_FwdSlash () ipc.control(70233, 536870912) end function NGX_CDU_CLR () ipc.control(70234, 536870912) end Please note: Thanks to EmileB for the LUA file. Thanks in advance.
×
×
  • 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.