Is it possible to bind the same hotkey to two different functions in VLC media player?

0

The only thread I could find on this topic is from 2007 on the VideoLAN forums.

I wanted to know if it's possible to bind one hotkey to two different functions using the VLC interface. For instance, is it possible to bind 'Enter' to both 'Fullscreen' and 'Exit Fullscreen'? If so, how would one go about doing it?

Skylar Kennedy

Posted 2017-12-07T06:52:20.387

Reputation: 103

According to this the default for "f" is to toggle full screen. Does it not toggle full screen on and off? Their wording is a bit rubbish if not...

– Mokubai – 2017-12-07T07:28:10.800

I think this documentation might be outdated. I'm not seeing any toggle fullscreen option in hotkey settings nor is f mapped to any action. – Skylar Kennedy – 2017-12-07T08:05:35.933

1@SkylarKennedy It only works as a hotkey if there is a video playing :) – DavidPostill – 2017-12-07T08:45:56.507

Answers

1

VLC generally prohibits setting the same hotkey for multiple functions.

In the example you gave of using the same key for Fullscreen and Exit fullscreen, the key for Fullscreen already works as the key for Exit fullscreen when the interface is in fullscreen. For other key combinations which obviously go together (like Play/Pause), there are combined key versions in VLC's preferences.

If you try to set the same hotkey for multiple functions in the interface, VLC will warn you (Warning: this key or combination is already assigned to "Other function"), and then if you still go ahead it will remove the hotkey from the function it was used for previously.

Even when editing the preferences file manually to have two functions with the same hotkey, VLC has a priority order for functions, so it will only execute one function. In my experimentation, I assigned Fullscreen and Next to the same hotkey, but the hotkey always executed Next.

If you really want to bind a set of unrelated functions together, you can use AutoHotkey for that (comment for more details).

Graham

Posted 2017-12-07T06:52:20.387

Reputation: 194

Thanks! I didn't realize that they key for Fullscreen also works for Exit Fullscreen by default. I just unbound the key for Exit Fullscreen and I was able to achieve my desired effect (using Enter to toggle). – Skylar Kennedy – 2017-12-11T01:59:57.613