Add Hotkey to Lua Script

Discuss your Lua playlist, album art and interface scripts.
tpf68948
New Cone
New Cone
Posts: 1
Joined: 23 Jan 2018 10:10

Add Hotkey to Lua Script

Postby tpf68948 » 23 Jan 2018 10:12

Hello, I have downloaded a LUA script that removes the current playing video from playlist and also from hard disk. This is the addon: https://addons.videolan.org/content/sho ... ent=167857

Is there any way to assign a hotkey (like shift+del) to activate that script and remove the video?

Thank you!

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: Add Hotkey to Lua Script

Postby mederi » 23 Jan 2018 14:15

No. Old VLC 2.0.x supports callbacks in Lua scripts, but the extensions need to be activated manually in VLC menu.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Add Hotkey to Lua Script

Postby Rémi Denis-Courmont » 23 Jan 2018 17:45

Hotkeys cannot be defined by plugins in general, and therefore not by Lua scripts.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ali1983
New Cone
New Cone
Posts: 1
Joined: 03 Jan 2021 20:27

Re: Add Hotkey to Lua Script

Postby Ali1983 » 10 Jan 2021 09:20

Hello trhere,

has a hotkey for lua extentions been added in the meantime?

Thank you

BenH
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2021 11:19

Re: Add Hotkey to Lua Script

Postby BenH » 24 Mar 2021 11:22

There is still quite the interest in this feature.
What is the current status?

dankaplanses
New Cone
New Cone
Posts: 1
Joined: 22 Jun 2023 01:32

Re: Add Hotkey to Lua Script

Postby dankaplanses » 22 Jun 2023 01:41

I would also like this feature.

Windows only: you can install vlc-delete and AutoHotKey v1 and use this script to trigger the menu item (as though you typed `alt+i,r`) to the shortcut `ctrl+delete`:

Code: Select all

#IfWinActive ahk_exe vlc.exe ^Delete:: SendInput {Blind}{Ctrl up}{Delete up} SendInput {Blind}{Alt down}{i down}{i up}{r down}{r up}{Alt up}

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Add Hotkey to Lua Script

Postby Rémi Denis-Courmont » 23 Jun 2023 22:19

This is fundamentally incompatible with the inner workings of the VLC plugin cache, which is all but indispensable on Windows (due to the incredibly stupid design of Windows DLLs).

VLC can't fix Windows so unless somebody finds a way to substitute the VLC plugin cache, this is not going to be supported.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 18 guests