VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date: Sep 2005
    Location: London
    Search Comp PM
    Hi there 8) I bought a remote control to control the pc with Mainly for the videos etc! The supported code, doesnt currently have the commands for the vlc player.

    A friend emailed me and said "Hi, if you know the commands for vic, you may be able to assign by editing
    the .ini file. "

    I am wondering if anyone good in this kind of thing, would be able to provide the code for me please?

    Here is an example of the code provided:
    [MediaRemote]
    PlayerNum=7
    PlayerName1=Windows Media Player6
    PlayerName2=Windows Media Player8
    PlayerName3=RealPlayer
    PlayerName4=PowerDVD
    PlayerName5=WinDVD
    PlayerName6=Winamp
    PlayerName7=ܳDVD
    CurrentPlayerName=Windows Media Player6


    [PowerDVD]
    UseableFlag= 1
    KeyRoot=1
    KeyPath=DVD\Shell\PlayWithPowerDVD\Command
    ValueName=
    Path=C:\Program Files\CyberLink\PowerDVD\PowerDVD.exe
    MainClass=Class of CyberLink Universal Player
    PlayerClass=CyberLink Video Window Class
    VolDelay=15

    Button_PowerOff=KEYBOARD:VK_CTRL + VK_X
    Button_DiskIn=KEYBOARD:VK_CTRL + VK_E
    Button_DiskOut=KEYBOARD:VK_CTRL + VK_E
    Button_Menu=KEYBOARD:VK_L
    Button_Config=KEYBOARD:VK_CTRL + VK_C
    Button_Full=KEYBOARD:VK_Z
    Button_Play=KEYBOARD:VK_RETURN
    Button_Pause=KEYBOARD:VK_SPACE
    Button_Stop=KEYBOARD:VK_S
    Button_PRV=KEYBOARD:VK_P
    Button_Next=KEYBOARD:VK_N
    Button_Backward=
    Button_Forward=
    Button_Shuffle=KEYBOARD:VK_U
    Button_Repeat=KEYBOARD:VK_CTRL + VK_R
    Button_VolAdd=KEYBOARD:VK_ADD
    Button_VolSub=KEYBOARD:VK_SUBTRACT
    Button_Mute=KEYBOARD:VK_Q
    Button_F1=FUNCTION:FUNC_PLAYER
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG

    [ܳDVD]
    UseableFlag= 0
    KeyRoot=1
    KeyPath=DVD\Shell\open\command
    ValueName=
    Path=C:\HEROSOFT\HERO2001\STHSDVD.EXE
    MainClass=SthVCDClass
    PlayerClass=VideoWindow
    VolDelay=1

    Button_PowerOff=KEYBOARD:VK_ALT + VK_X
    Button_DiskIn=COMMAND:40131
    Button_DiskOut=COMMAND:40130
    Button_Menu=KEYBOARD:VK_ALT + VK_F
    Button_Config=
    Button_Full=KEYBOARD:VK_CTRL + VK_HOME
    Button_Play=KEYBOARD:VK_CTRL + VK_P
    Button_Pause=KEYBOARD:VK_CTRL + VK_S
    Button_Stop=KEYBOARD:VK_CTRL + VK_S
    Button_PRV=COMMAND:40046
    Button_Next=COMMAND:40047
    Button_Backward=KEYBOARD:VK_CTRL + VK_PRIOR
    Button_Forward=KEYBOARD:VK_CTRL + VK_NEXT
    Button_Shuffle=
    Button_Repeat=COMMAND:40033
    Button_VolAdd=KEYBOARD:VK_CTRL + VK_ADD
    Button_VolSub=KEYBOARD:VK_CTRL + VK_SUBTRACT
    Button_Mute=KEYBOARD:VK_CTRL + VK_DELETE
    Button_F1=FUNCTION:FUNC_PLAYER
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG

    [Windows Media Player8]
    UseableFlag= 1
    KeyRoot=1
    KeyPath=Applications\wmplayer.exe\shell\open\comma nd
    ValueName=
    Path=C:\Program Files\Windows Media Player\wmplayer.exe
    MainClass=WMPlayerApp
    PlayerClass=WMPlayerApp
    VolDelay=15

    Button_PowerOff=KEYBOARD:VK_ALT + VK_F4
    Button_DiskIn=KEYBOARD:VK_CTRL + VK_E
    Button_DiskOut=KEYBOARD:VK_CTRL + VK_E
    Button_Menu=KEYBOARD:VK_ALT + VK_F
    Button_Config=
    Button_Full=KEYBOARD:VK_ALT + VK_RETURN
    Button_Play=KEYBOARD:VK_CTRL + VK_P
    Button_Pause=VKEYBOARD:K_CTRL + VK_P
    Button_Stop=KEYBOARD:VK_CTRL + VK_S
    Button_PRV=KEYBOARD:VK_CTRL + VK_B
    Button_Next=KEYBOARD:VK_CTRL + VK_F
    Button_Backward=KEYBOARD:VK_CTRL + VK_SHIFT + VK_B
    Button_Forward=KEYBOARD:VK_CTRL + VK_SHIFT + VK_F
    Button_Shuffle=KEYBOARD:VK_CTRL + VK_H
    Button_Repeat=KEYBOARD:VK_CTRL + VK_T
    Button_VolAdd=KEYBOARD:VK_F10
    Button_VolSub=KEYBOARD:VK_F9
    Button_Mute=KEYBOARD:VK_F8
    Button_F1=FUNCTION:FUNC_CLOSEWIN
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG

    [WinDVD]
    UseableFlag= 0
    KeyRoot=1
    KeyPath=WinDVD.playback\shell\open\Command
    ValueName=
    Path=M:\Program Files\InterVideo\DVD5\WinDVD.exe
    MainClass=WinDVDClass
    PlayerClass=WinDVDClass
    VolDelay=12

    Button_PowerOff=KEYBOARD:VK_X
    Button_DiskIn=KEYBOARD:VK_E
    Button_DiskOut=KEYBOARD:VK_E
    Button_Menu=KEYBOARD:VK_CTRL + VK_M
    Button_Config=
    Button_Full=KEYBOARD:VK_Z
    Button_Play=KEYBOARD:VK_RETURN
    Button_Pause=KEYBOARD:VK_SPACE
    Button_Stop=KEYBOARD:VK_END
    Button_PRV=KEYBOARD:VK_PRIOR
    Button_Next=KEYBOARD:VK_NEXT
    Button_Backward=KEYBOARD:VK_R
    Button_Forward=KEYBOARD:VK_F
    Button_Shuffle=
    Button_Repeat=
    Button_VolAdd=KEYBOARD:VK_SHIFT + VK_UP
    Button_VolSub=KEYBOARD:VK_SHIFT + VK_DOWN
    Button_Mute=KEYBOARD:VK_M
    Button_F1=FUNCTION:FUNC_PLAYER
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG

    [RealPlayer]
    UseableFlag= 1
    KeyRoot=1
    KeyPath=Software\RealNetworks\RealPlayer\6.0\Prefe rences\MainApp
    ValueName=
    Path=C:\Program Files\Real Alternative\mpclauncher.exe
    MainClass=PNGUIClass
    PlayerClass=PNGUIClass
    VolDelay=5

    Button_PowerOff=KEYBOARD:VK_ALT + VK_F4
    Button_DiskIn=
    Button_DiskOut=
    Button_Menu=KEYBOARD:VK_ALT + VK_F
    Button_Config=
    Button_Full=KEYBOARD:VK_CTRL + VK_3
    Button_Play=KEYBOARD:VK_CTRL + VK_P
    Button_Pause=KEYBOARD:VK_CTRL + VK_P
    Button_Stop=KEYBOARD:VK_CTRL + VK_S
    Button_PRV=KEYBOARD:VK_CTRL + VK_R
    Button_Next=KEYBOARD:VK_CTRL + VK_T
    Button_Backward=KEYBOARD:VK_CTRL + VK_LEFT
    Button_Forward=KEYBOARD:VK_CTRL + VK_RIGHT
    Button_Shuffle=
    Button_Repeat=
    Button_VolAdd=KEYBOARD:VK_CTRL + VK_UP
    Button_VolSub=KEYBOARD:VK_CTRL + VK_DOWN
    Button_Mute=KEYBOARD:VK_F11
    Button_F1=FUNCTION:FUNC_PLAYER
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG


    [Winamp]
    UseableFlag= 1
    KeyRoot=1
    KeyPath=Directory\shell\Winamp.Play\command
    ValueName=
    Path=C:\Program Files\Winamp\Winamp.exe
    MainClass=Winamp v1.x
    PlayerClass=Winamp v1.x
    VolDelay=5

    Button_PowerOff=KEYBOARD:VK_ALT + VK_F4
    Button_DiskIn=
    Button_DiskOut=
    Button_Menu=
    Button_Config=
    Button_Full=KEYBOARD:VK_CTRL + VK_D
    Button_Play=KEYBOARD:VK_X
    Button_Pause=KEYBOARD:VK_C
    Button_Stop=KEYBOARD:VK_V
    Button_PRV=KEYBOARD:VK_Z
    Button_Next=KEYBOARD:VK_B
    Button_Backward=KEYBOARD:VK_LEFT
    Button_Forward=KEYBOARD:VK_RIGHT
    Button_Shuffle=KEYBOARD:VK_S
    Button_Repeat=KEYBOARD:VK_R
    Button_VolAdd=KEYBOARD:VK_UP
    Button_VolSub=KEYBOARD:VK_DOWN
    Button_Mute=
    Button_F1=FUNCTION:FUNC_PLAYER
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG

    [Windows Media Player6]
    UseableFlag= 1
    KeyRoot=4
    KeyPath=Software\Microsoft\Multimedia\MPlayer2
    ValueName=Player.Path
    Path=C:\Program Files\Windows Media Player\mplayer2.exe
    MainClass=WMPlayerApp
    PlayerClass=WMPlayerApp
    VolDelay=10

    Button_PowerOff=KEYBOARD:VK_ALT + VK_F4
    Button_DiskIn=
    Button_DiskOut=
    Button_Menu=KEYBOARD:VK_ALT + VK_F
    Button_Config=
    Button_Full=
    Button_Play=KEYBOARD:VK_SPACE
    Button_Pause=VKEYBOARD:VK_SPACE
    Button_Stop=KEYBOARD:VK_PERIOD
    Button_PRV=KEYBOARD:VK_PRIOR
    Button_Next=KEYBOARD:VK_NEXT
    Button_Backward=KEYBOARD:VK_CTRL + VK_LEFT
    Button_Forward=KEYBOARD:VK_CTRL + VK_RIGHT
    Button_Shuffle=KEYBOARD:
    Button_Repeat=KEYBOARD:
    Button_VolAdd=KEYBOARD:VK_UP
    Button_VolSub=KEYBOARD:VK_DOWN
    Button_Mute=KEYBOARD:VK_CTRL + VK_M
    Button_F1=FUNCTION:FUNC_CLOSEWIN
    Button_F2=FUNCTION:FUNC_CONTROL
    Button_F3=FUNCTION:FUNC_CONFIG


    Thanks, I know this is a strange request.
    Quote Quote  
  2. I think you have to do it yourself...
    Some hints:
    I would try to add a 'new Player' section in the file:
    [MediaRemote]
    PlayerNum=8
    PlayerName1=Windows Media Player6
    PlayerName2=Windows Media Player8
    PlayerName3=RealPlayer
    PlayerName4=PowerDVD
    PlayerName5=WinDVD
    PlayerName6=Winamp
    PlayerName7=ܳDVD
    PlayerName8=VLC
    CurrentPlayerName=Windows Media Player6
    ...

    [VLC]
    UseableFlag= 1
    KeyRoot=1
    KeyPath=
    ValueName=
    Path= YOUR PATH to VLC
    MainClass=Class of VLC
    PlayerClass=VLC Video Window Class
    VolDelay=15

    I have no idea if this is correct, but you can try...

    To get the keys:
    If you open the menu in VLC you can see the configured shortcuts like Ctrl-F,
    Ctrl-D...
    Code:
    File    View    Settings    Audio    Video
    Quick Open File...             Ctrl-O
    Open File...                       Ctrl-F
    Open Directory...              Ctrl-E
    Open Disc...                      Ctrl-D
    Open Network Stream...   Ctrl-N
    Open Capture Device...    Ctrl-A
    Wizard...                           Ctrl-W
    Exit                                    Ctrl-X
    For the other keyboard commands, open Preferences and click on 'Hotkeys settings', there you may configure which key does what (I would use 'Ctrl' for each key).

    Then add the 'keys' in the [VLC] section something like this:
    Button_PowerOff=KEYBOARD:VK_CTRL + VK_X
    Button_Full=KEYBOARD:VK_CTRL + VK_Z
    Button_Play=KEYBOARD:VK_CTRL + VK_RETURN
    Button_Pause=KEYBOARD:VK_CTRL + VK_SPACE
    Button_Stop=KEYBOARD:VK_CTRL + VK_S
    ...
    Quote Quote  
  3. Member
    Join Date: Jan 2008
    Location: United Kingdom
    Search Comp PM
    Hi, there. Because we have different remote controls, we have different configuration files. But you may find my configuration useful, as it has the classes for some popular applications. I could find the windows classes out by using a freeware called WindowSpy.

    019. App_Name = Media Player Classic
    App_Class = MediaPlayerClassicW
    App_File = Combined Community Codec Pack\MPC\mplayerc.exe

    020. App_Name = VLC media player
    App_Class = wxWindowClassNR
    App_File = VideoLAN\VLC\vlc.exe

    The Media Player Classic that I installed on my computer was downloaded from www.cccp-project.net.

    Hope it helps.[/list]
    Quote Quote  



Similar Threads