Page 1 of 1

Quick LUA question

Posted: 14 Mar 2012 22:19
by M^3
I'm trying to write a lazy plugin to send GNTP messages with gntp-send-static using the following line:
fd = io.popen("gntp-send-static.exe -a VLC -s 127.0.0.1 \"VLC\"" .. meta.artist .. " - " .. meta.title )

It has not worked and I suspect for security reasons VLC might not allow running external EXEs from LUA, are my suspicions correct?
This is VLC 2.0.0 on Windows 7 SP1 32bit. gntp-send-static is on my path but I did try it with the full path as well.

Re: Quick LUA question

Posted: 15 Mar 2012 00:45
by Jean-Baptiste Kempf
I do not think this is supported.

Re: Quick LUA question

Posted: 15 Mar 2012 14:55
by M^3
I found an error in my code that prevented the script even getting to that line. Now that I have the bad code commented out VLC pops open a black window (a console window I am guessing) for a split second before the UI hangs. it appears to be trying but it never quite launches the external program which could just be another mistake in my code, I'm not much of a programmer and this is my first attempt at lua.