Hi Pete or any other LUA Guru,
I've now converted to P3DV4 and I'm running FSUIPC 5.103g .
A lua script I used in FSX successfully to play a video doesn't seem to respond.
I'm using the ext.shell in the lua library.
video, error = ext.shell("L:\\1.mp4", "EXT_FOCUS") ( As I said, this worked in FSX)
the log showed no errors, but the video didn't play.
********* LUA: "test" Log [from FSUIPC version 5.103g] *********
13259554 System time = 16/07/2017 14:37:18, Simulator time = 11:37:18 (21:37Z)
13259554 LUA: beginning "L:\Prepar3D v4\Modules\test.lua"
13259554 LUA: L:\Prepar3D v4\Modules\test.lua:2
13259554 LUA: Global: ipcPARAM = 0
13259617 >>> Thread forced exit (ipc.exit or os.exit) <<<
13259617 System time = 16/07/2017 14:37:18, Simulator time = 11:37:18 (21:37Z)
********* LUA execution terminated: Log Closed *********
so I tried making .bat file called video1.bat with simply "L:\1.mp4" in it.
then changed the lua code to:
video, error = ext.run("L:\\video1.bat")
and it worked.
I also tried:
video, error = ext.run("L:\\1.mp4", "EXT_FOCUS")
with no luck but also no errors recorded.
Just wondering if I'm doing something wrong or what else I should look into.
I can stick with the .bat file since it works, but it doesn't allow for the command line parameters to adjust the video window.
Thanks for your help.
-Jim