Snapshot webradio info by hotkey to log file?

Discuss your Lua playlist, album art and interface scripts.
Elektromusic
New Cone
New Cone
Posts: 2
Joined: 20 Jul 2014 11:17

Snapshot webradio info by hotkey to log file?

Postby Elektromusic » 20 Jul 2014 11:31

Listens to many web radio stations while working and once in a while there is some great music and I would like to do a snapshot of current "Now playing" to a logfile by pressing a hotkey. How to manage this?
(Not a big skilled programmer, just basic knowledge.)

Probably someone already has done this but despite my search I haven't found it. :(

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: Snapshot webradio info by hotkey to log file?

Postby mederi » 25 Jul 2014 16:16

Custom hotkeys are available in VLC-2.0.x (example script: eplased_time_to_file.lua), not in VLC-2.1+. You could write a VLC Lua Extension script containing a dialog box with a button and use some external helper like AutoHotkey.

Elektromusic
New Cone
New Cone
Posts: 2
Joined: 20 Jul 2014 11:17

Re: Snapshot webradio info by hotkey to log file?

Postby Elektromusic » 09 Aug 2014 21:48

Thank's alot for your answear mederi!
Ok, so best alternative is to install a previous version of VLC as I understand. (I'm now running 2.1)
Why disable custom hotkeys in 2.1+? Security reasons?

Writing a Lua Ex. + using AutoHotkey seems a long way around though, but will try it out.

No known stream-player with this option already at hand otherwise? (Would still keep VLC as my primary player, it rocks! ;) )

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: Snapshot webradio info by hotkey to log file?

Postby mederi » 10 Aug 2014 19:42

VLC-2.0.x with hotkeys.lua interface script with your custom hotkey and appropriate function would suit your request best. Otherwise go for suggested solution/workaround for VLC-2.1+

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: Snapshot webradio info by hotkey to log file?

Postby mederi » 12 Aug 2014 20:01

Here is an example of the function you could use within the hotkeys inferface script or in your extension:
https://forum.videolan.org/viewtopic.ph ... 73#p408373


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 6 guests