0

I have training curse video that runs on vlc player on second monitor. I do sample exercise in Visual Studio on main monitor while watching video. Sometimes I need to stop video in fast way and for this reason I don't want use mouse. I need to stop video with help of short key combination. How to achieve that?

UPD: I have installed AutoHotKey, but keys are working only when vlc window is active

vico
  • 2,379
  • 12
  • 39
  • 60
  • Have you got multimedia keys on your keyboard? if yes, the pause button should do – pim Sep 21 '17 at 13:54
  • I have som e keys for internet exploring, but no multimedia. Can I somehow redefine them? – vico Sep 21 '17 at 14:34
  • *"I have installed AutoHotKey, but keys are working only when VLC window is active."* Unfortunately, you will find that is typically the way that it will work. For better or worse, the fastest way to pause that video is probably going to involve utilizing the mouse. – Run5k Sep 21 '17 at 15:02
  • Try the following. This may also work with non-media keys. Note that you must utilize the "Global" setting and will need to restart VLC for the changes to take effect: https://superuser.com/a/750103/122089 – Beems Sep 21 '17 at 19:46

2 Answers2

0

global shortcut keys work as Beems pointed out, but I needed to do it from AHK because I needed to do other commands too this ahk script works for me (win+numpad 5 to toggle playback)

#Numpad5::

ControlSend,, {Space}, ahk_class QWidget

Matiaan
  • 53
  • 7
-1

“Space bar” to pause playback “s” to stop Go to tools, preferences, hotkeys to change if required

kmb
  • 1
  • 2
    This shortcut will only work when vlc is the active window – Dave M Sep 21 '17 at 17:28
  • Option tab will cycle through open applications (alt tab for pc) this is how I use it and it works fine as long as you have only gone into one application so it’s not several tabs away then can perform action of option tab, space fairly quickly. – kmb Sep 22 '17 at 20:04
  • We always appreciate contributions from our new community members, but I think that you might be missing the point that @DaveM is trying to make. The OP specifically said that *"I have installed AutoHotKey, but keys are working only when vlc window is active."* In other words, they already found a solution that will work if you toggle over to VLC as the active window. They are asking for one that will work when VLC **isn't** already the active window. – Run5k Sep 22 '17 at 21:15