Quick LUA question

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
M^3
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2012 22:14
VLC version: 2.0.1
Operating System: WinXP/Win7
Location: Massachusetts

Quick LUA question

Postby M^3 » 14 Mar 2012 22:19

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Quick LUA question

Postby Jean-Baptiste Kempf » 15 Mar 2012 00:45

I do not think this is supported.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

M^3
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2012 22:14
VLC version: 2.0.1
Operating System: WinXP/Win7
Location: Massachusetts

Re: Quick LUA question

Postby M^3 » 15 Mar 2012 14:55

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests