Code: Select all
#IfWinActive ahk_exe vlc.exe
; [Play|Pause]
~LButton::
MouseGetPos, , , , VLC_control
if InStr(VLC_control, "VLC video output")
{
Send, {Space}
}
VLC_control := ""
Return
#IfWinActive
return
(I tknow there is another solution for this using the vlc-pause-click-plugin, however, it involves installation of a plugin and rather non-trivial setup. Also, for some reason this plugin got removed from my VLC every time I updated the player, meaning I had to jump through all the hoops after every update.)
My script simply emulates Space keypress (Play/Pause function in VLC) when left-clicking on the video (but not any other part of the VLC/Windows interface). All other functions of the player (like double-click for full-screen, seeking, full-screen controls, etc) are not effected and work as they should. Enjoy!