Here's
GlobalVLC!
It makes VLC hotkeys work even when VLC is inactive.
Edit your VLC config file by removing the # in front of the hotkey you want to make global, and add an unoccupied hotkey.
Also change the script below:
vlcrc= must point to your VLC config file, and vlc= must match the title of VLC.
Skrommel
;GlobalVLC.ahk
; Make VLC hotkeys work even when VLC is inactive.
; Edit your VLC config file by removing the # in front of
; the hotkey you want to make global, and add a unoccupied hotkey.
; Change the vlcrc= line below to match the location of your VLC config file
; and vlc= must match the titlebar of VLC.
;Skrommel @ 2008
vlcrc=C:\Users\%A_UserName%\AppData\Roaming\vlc\vlcrc
vlc=VLC media player
#SingleInstance,Force
#NoEnv
SendMode,Input
applicationname=GlobalVLC
IfNotExist,%vlcrc%
MsgBox,0,%applicationname%,VLC config file not found!`n`n%vlcrc%
hotkeys=
count=0
found=0
Loop,Read,%vlcrc%
{
IfInString,A_LoopReadLine,[main]
found=1
If found=0
Continue
StringSplit,part,A_LoopReadLine,=
StringReplace,part1,part1,%A_Space%,,All
If (SubStr(part1,1,4)<>"key-")
Continue
If part2=
Continue
If part2=Unset
Continue
StringReplace,part2,part2,Right,Right
StringReplace,part2,part2,Left,Left
StringReplace,part2,part2,Up,Up
StringReplace,part2,part2,Down,Down
StringReplace,part2,part2,Enter,Enter
StringReplace,part2,part2,Space,Space
StringReplace,part2,part2,Tab,Tab
StringReplace,part2,part2,BackSpace,BackSpace
StringReplace,part2,part2,Space,Space
StringReplace,part2,part2,F12,F12
StringReplace,part2,part2,F11,F11
StringReplace,part2,part2,F10,F10
StringReplace,part2,part2,F9,F9
StringReplace,part2,part2,F8,F8
StringReplace,part2,part2,F7,F7
StringReplace,part2,part2,F6,F6
StringReplace,part2,part2,F5,F5
StringReplace,part2,part2,F4,F4
StringReplace,part2,part2,F3,F3
StringReplace,part2,part2,F2,F2
StringReplace,part2,part2,F1,F1
StringReplace,part2,part2,Shift-,+
StringReplace,part2,part2,Ctrl-,^
StringReplace,part2,part2,Alt-,!
Hotkey,%part2%,SEND
count+=1
hotkeys=%hotkeys%%part1%`=%part2%`n
}
If count=0
MsgBox,0,%applicationname%,No hotkeys found!
Else
MsgBOx,0,%applicationname%,Made the following hotkeys global:`n`n%hotkeys%
Return
SEND:
; ToolTip,%A_ThisHotkey%
ControlSend,,%A_ThisHotkey%,%vlc%
Return