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,811

3 Answers3

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
  • 93
0
^Space::
WinGetTitle, title, A  ; Get Active Window Title
WinGetClass, class, A  ; Get Active Window Class
WinGet, process, ProcessName, A  ; Get Active Window Process
WinActivate, VLC media player ahk_class Qt5QWindowIcon ahk_exe vlc.exe  ; Send Space To VLC
Send, {Space}  ; Send Space To VLC
WinActivate, %title% ahk_class %class% ahk_exe %process%  ; Activate Previously Active Window
Return
-1

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

kmb
  • 1