Skip to content

Instantly share code, notes, and snippets.

@davebrny
Last active February 12, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davebrny/f6da569e2360d6bfd896eb7d50c70f66 to your computer and use it in GitHub Desktop.
Save davebrny/f6da569e2360d6bfd896eb7d50c70f66 to your computer and use it in GitHub Desktop.
(autohotkey) - vlc hotkeys remapped to match youtube's hotkeys
#ifWinActive ahk_class QWidget ; vlc
k::send {space} ; play/pause
~LButton:: ; click video to play/pause
keyWait, LButton
keyWait, LButton, D T.2
if (errorLevel)
{
mouseGetPos, , , , class_under_mouse
if class_under_mouse contains video output, video main
send {space}
}
return
SC034::send {e} ; frame by frame (SC034 = period key)
up::send ^{up} ; volume up 5%
down::send ^{down} ; volume down 5%
+,::send {[} ; decrease speed
+SC034::send {]} ; increase speed
j::send !{left} ; jump 10 seconds back
l::send !{right} ; jump 10 seconds forwards
; other non-youtube commands
+j::send +{left} ; jump 3 seconds back
+l::send +{right} ; jump 3 seconds back
^+j::send ^{left} ; jump 1 minute back
^+l::send ^{right} ; jump 1 minute forwards
left::send {p} ; play previous video
right::send {n} ; play next video
^f:: ; resize window to 870x640
winMove, ahk_class QWidget, , , , 870, 640
return
#ifWinActive
@davebrny
Copy link
Author

hotkeys for vlc that match youtube's hotkeys:

hotkey action
k play/pause
left mouse click play/pause
. frame by frame
up volume up
down volume down
shift + , decrease speed
shift + . increase speed
j jump 10 second back
l   (the L key) jump 10 second forwards

 

other non-youtube commands:

hotkey action
shift + j jump 3 second back
shift + l jump 3 second forward
ctrl shift + j jump 1 minute back
ctrl shift + l jump 1 minute forward
left play previous video
right play next video
ctrl + f resize window to 870x640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment