OK. Step by step as follow:
1. Put file *.lua in FSX/Modules/ folder then restart FSX.
2. SPAD setting to send your buttons as virtual FSUIPC joystick
3. Open FSUIPC in button tab and wait SPAD send button (you can try by click to send in SPAD or real button in Saitek panels)
4. Assignment that button to run LUA PMDG737NGX_AP.LUA (for example) and Parameter need to put number equivalent to function in Lua file.
Note:
Not all function in my script work because i don't need it. Only functions like:
--function NGX_LAND_ALL_on ()
if ipcPARAM == 1 then
--DspShow ("LAND", "ON")
ipc.writeLvar('ngx_switch_110_a', 100);
NGX_LAND_RETR_L_on ()
NGX_LAND_RETR_R_on ()
NGX_LAND_FIXED_L_on ()
NGX_LAND_FIXED_R_on ()
ipc.sleep(100)
ipc.writeLvar('ngx_switch_110_a', 0);
end
--function NGX_LAND_ALL_off ()
if ipcPARAM == 2 then
NGX_LAND_RETR_L_off ()
ipc.sleep(100)
NGX_LAND_RETR_R_off ()
ipc.sleep(100)
NGX_LAND_FIXED_L_off ()
ipc.sleep(100)
NGX_LAND_FIXED_R_off ()
end
Let see : if ipcPARAM == 1 then meaning if Parameter=1 you send to LUA PMDG737NGX_OVH.LUA then this button will turn on all Landing light, set Parameter =2 in this button when release will turn Off Landing light as
--function NGX_LAND_ALL_off ()
if ipcPARAM == 2 then
...
you can get original files action.lua from LINDA aircaft folder change name to as you want (PMDG737.lua or i seperate t to OVH and AP), find function you want then mark function name, replace it by if ipcPARAM = XX, where XX is number you use as parameter FSUIPC will send when assgnment buttons.