Yes, I would like to tell you that after a few hours reading the FSUIPC for advanced users and reading the entire thread here, and many tests with the mobiflight program, I managed to run the . lua that you helped our friend BAW242 make for the Ifly, since he had the same problem executing 2 commands with a single switch, I have built a rudimentary B737 MCP + Lights with Arduino, that is my reason for using mobiflight.
In case anyone needs it, I'll explain the steps using FSUIPC7 registered for MSFS:
1. Place the file filename.lua in the root folder of FSUIPC.
2. Add the line in FSUIPC.ini
[LuaFiles]
1=iFlyRwyOFF
2=iFlyRwyON
(file names for example)
3. In the mobiflight program, select FSUIPC - Lua Macro
4. Enter the word Lua + filename, without the extension, as shown in the picture
Then it would look like this: Lua iFlyRwyON and parameter 0
Done!
ipc.execCalcCode("23 (>L:VC_Miscellaneous_trigger_VAL, number)")
ipc.sleep(100)
ipc.execCalcCode("25 (>L:VC_Miscellaneous_trigger_VAL, number)")