Hotkey

Discuss your Lua playlist, album art and interface scripts.
aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Hotkey

Postby aitte » 18 Sep 2013 05:09

How would I go about adding a hotkey/keyboard shortcut to an extension?
So that when pressing a key combo activates specific extension.

drewkeller
Blank Cone
Blank Cone
Posts: 25
Joined: 17 Sep 2013 14:59

Re: Hotkey

Postby drewkeller » 18 Sep 2013 19:57

As far as I've been able to figure out, you can only do hotkeys in interface type of lua script.

You can find an example of hotkeys in the 2.0.8 source code at /share/lua/intf/hotkeys.lua. Or you can decomile the hotkeys.luac in a VLC installation.

I noticed that the VLC 2.1 source does NOT have the hotkeys script. I'm not sure what that means as far as the future support of hotkeys in lua.

drewkeller
Blank Cone
Blank Cone
Posts: 25
Joined: 17 Sep 2013 14:59

Re: Hotkey

Postby drewkeller » 18 Sep 2013 20:03

There's also an example somewhere in this forum, which you can find using Google.

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: Hotkey

Postby mederi » 20 Sep 2013 13:06

It is not possible to activate an extension by pressing a hotkey.
viewtopic.php?f=29&t=113706&p=385778#p385778


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 1 guest