Page 1 of 1

Add Hotkey to Lua Script

Posted: 23 Jan 2018 10:12
by tpf68948
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!

Re: Add Hotkey to Lua Script

Posted: 23 Jan 2018 14:15
by mederi
No. Old VLC 2.0.x supports callbacks in Lua scripts, but the extensions need to be activated manually in VLC menu.

Re: Add Hotkey to Lua Script

Posted: 23 Jan 2018 17:45
by Rémi Denis-Courmont
Hotkeys cannot be defined by plugins in general, and therefore not by Lua scripts.

Re: Add Hotkey to Lua Script

Posted: 10 Jan 2021 09:20
by Ali1983
Hello trhere,

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

Thank you

Re: Add Hotkey to Lua Script

Posted: 24 Mar 2021 11:22
by BenH
There is still quite the interest in this feature.
What is the current status?

Re: Add Hotkey to Lua Script

Posted: 22 Jun 2023 01:41
by dankaplanses
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}

Re: Add Hotkey to Lua Script

Posted: 23 Jun 2023 22:19
by Rémi Denis-Courmont
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.