Simple message not working !

Discuss your Lua playlist, album art and interface scripts.
spark90
Blank Cone
Blank Cone
Posts: 23
Joined: 31 Mar 2021 03:00

Simple message not working !

Postby spark90 » 31 Mar 2021 07:00

Here is my script :

Code: Select all

function descriptor() return { title = "Test" } end function main() vlc.msg.info("Message de test !") end
It appears on the VLC interface, I click on "Test", it seems to do nothing. I go to Tools->Messages (CTRL-M) => Empty !!

Any ideas ?

Thx

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Simple message not working !

Postby mederi » 01 Apr 2021 18:47


spark90
Blank Cone
Blank Cone
Posts: 23
Joined: 31 Mar 2021 03:00

Re: Simple message not working !

Postby spark90 » 01 Apr 2021 21:49

Thx, I'll take a look ! :)

spark90
Blank Cone
Blank Cone
Posts: 23
Joined: 31 Mar 2021 03:00

Re: Simple message not working !

Postby spark90 » 04 Apr 2021 22:50

even the script

-- "extension.lua"
-- VLC Extension basic structure (template): ----------------

from the wiki is broken.

for me, lua is broken in 3.0.x !

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Simple message not working !

Postby mederi » 05 Apr 2021 16:04

Ah sorry, a service discovery script (descriptor() and main()), not an extension (descriptor() and activate()).

spark90
Blank Cone
Blank Cone
Posts: 23
Joined: 31 Mar 2021 03:00

Re: Simple message not working !

Postby spark90 » 07 Apr 2021 23:00

problem solved, you should open CTRL-M console BEFORE calling the lua script


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 8 guests