zoukankan      html  css  js  c++  java
  • 罗技Setpoint控制酷狗等第三方播放器

     

    手里有个淘过来的二手戴尔蓝牙键盘,虽然是戴尔的,但是确实罗技代工的,因此可以使用罗技的Setpoint,用这个软件后可以集中管理罗技的键盘鼠标进行一些个性化设置,如下图所示。不过郁闷的是如果不装Setpoint,那么本身的快捷键就是可以用的,只是是默认的程序不好更改,按音乐按键可以直接调处酷狗音乐,播放控制也能用,使用Setpoint后,启动程序可以自己设置指定为酷狗,但是播放却没法控制了,软件界面中也不好自定义,让我很是郁闷,经过简单摸索找到了解决方法。对应其他多媒体键盘、其他版本软件都可以使用。

    首先是把音乐按钮指定路径酷狗对应的exe文件,如下图所示。

    image

    接下来找到setpoint的安装路径,有个Players.ini配置文件,我的路径在C:Program FilesLogitechSetPointP,可以备份一个,接下来更改这个文件,windows8.1没有权限的可以先拷贝出来,改好了再替换回去或者用管理员权限打开。

    先看一下这个文件的前几行的说明:

    #List of supported players
    #{btn|key|msg|emg|cmd|wac},exeName,wndClass,wndCaption,xxx,play_delayplay,pause,stop,prev,next,remove_flags,ShowOSD,menu_item
    #special char --> ^ ctrl;+ shift+ctrl; $ ctrl (no translation); * alt (no translation); @ ctrl+alt (no tanslation); & (no translation)

    文件说明的很清楚,列出了支持的播放器,定义了按键方式,更多的我也不懂,但是可以参考参考里面其他的播放器。

    BaoFeng=key,storm.exe,xxx,xxx,xxx, , ,$0x53,&0x21,&0x22,0,1,Bao Feng
    Koowoo=key,KwMusic.exe,xxx,xxx,xxx,$0x74,$0x74,$0x75,?0x25,?0x27,0,1,Koowoo
    TTing=key,tting.exe,xxx,xxx,xxx,@0x4f,@0x4f,@0x4f,@0x25,@0x27,0,1,TTing
    #Pctutu=key,PPStream.exe,xxx,xxx,xxx, , ,^S,^0x21,^0x22,0,1,Pctutu

    从这里面能够看到几个熟悉的播放器,酷我音乐盒,暴风影音,大致能够看懂一些意思,key表示通过按键控制,后面跟着的是程序名称,xxx就不知道啥意思了,后面跟着的就是键码了,$表示的是ctrl键,这个在第三行有说明,其他对应快捷键可以对应修改,0x74对应的就是F5的键码,看到这儿就能大致明白了,改之前先来设置酷狗的快捷键。

    image

    默认的是alt+的快捷键,但是经常和其他快捷键冲突,于是我就改为Ctrl+alt的方式,这样冲突的可能性就减少了,最后启用全局快捷键这样酷狗在后台也能够被控制。

    那么在[Players]列表的最后对应的加一行就OK了。键码自己百度,我的设置如下:

    KuGou=key,KuGou.exe,xxx,xxx,xxx,@0x74,@0x74,@0x44,@0x25,@0x27,0,1,KuGou

    @0x74就是表示Ctrl+Alt+F5,第一个表示播放/暂停,后面是停止,酷狗没有停止我给对应的是歌词隐藏,在向后是上一曲下一曲,这部分就算改好了。(emouse.cnblogs.com)

    下一步是[Players.Run]这个应该是检测播放器,原有的几个是这样的

    MediaCenter=path,$WINDOWSeHome
    WinAmp3=reg,HKLM,SOFTWAREClassesWinamp3.FileDefaultIcon,,2
    Rhapsody=reg,HKCR,rhapDefaultIcon,,5
    WinAmp5=reg,HKLM,SOFTWAREClassesWinamp.FileDefaultIcon,,2
    YahooMusicEngine=reg,HKCR,TypeLib{2C5EBFB1-9174-4FE8-88DB-D1F460A9E83B}1.0win32,,
    Koowoo=reg,HKLM,SOFTWAREClasseskwfile_ksfshellopencommand,,5

    这个是通过注册表来检测的,因为软件不知道你安装的具体目录,所以就从注册表找,咱自己改的话没必要啊,添上这样一行:

    KuGou=path,C:Program Files (x86)KuGouKGMusic

    后面跟的是我的路径,添上保存,替换原有文件就OK了,重启setpoint试试就OK了。

    最后附上我完整的players.ini文件,我的软件版本如下,我是windows8.1 64位系统,其他软件和系统应该都OK。

    image

    #List of supported players
    #{btn|key|msg|emg|cmd|wac},exeName,wndClass,wndCaption,xxx,play_delayplay,pause,stop,prev,next,remove_flags,ShowOSD,menu_item
    #special char --> ^ ctrl;+ shift+ctrl; $ ctrl (no translation); * alt (no translation); @ ctrl+alt (no tanslation); & (no translation) 
    [Players]
    MusicMatch7=wac,MMJB.EXE,MMJB:MAINWND,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,MusicMatch
    MusicMatch=cmd,MMJB.EXE,xxx,MusicMatch Jukebox 4,xxx,0x101F4,0x18059,0x101F5,0x101F6,0x101F7,0,1,MusicMatch
    MDesktop=wac,MDesktop.exe,MediaDesktopClass,Media Desktop,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Media Desktop
    PowerDVD=key,PowerDVD.exe,xxx,CyberLink PowerDVD,xxx,0x0d,0x20,S,P,N,0,1,Power DVD
    WinDVD=wac,WinDVD.exe,WinDVDClass,Player,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Win DVD
    WinDVD4=key,WinDVD.exe,WinDVDClass,InterVideo WinDVD 4,xxx,0x0d,0x20,0x23,0x21,0x22,0,1,Win DVD
    WinDVD5=key,WinDVD.exe,WinDVDClass,InterVideo WinDVD 5,xxx,0x0d,0x20,0x23,0x21,0x22,0,1,Win DVD
    WinDVD6=key,WinDVD.exe,WinDVDClass,InterVideo WinDVD 6,xxx,0x0d,0x20,0x23,0x21,0x22,0,1,Win DVD
    WinDVD7=key,WinDVD.exe,WinDVDClass,InterVideo WinDVD 7,xxx,0x0d,0x20,0x23,0x21,0x22,0,1,Win DVD
    iTunes_104=wac,iTunes.exe,ITWindow,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,iTunes
    iTunes=wac,iTunes.exe,ITunes,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,iTunes
    MSMedia9=wac,wmplayer.exe,WMPlayerApp,Windows Media Player,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Windows Media Player 9
    MSMedia7=wac,wmplayer.exe,WMP Skin Host,Windows Media Player,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Windows Media Player 7
    MediaCenter=wac,ehshell.exe,eHome Render Window,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Windows Media Center
    WinAmp3=key,studio.exe,STUDIO,xxx,xxx,X,C,V,Z,B,0,1,WinAmp 3
    WinAmp3d=key,winamp3.exe,STUDIO,xxx,xxx,X,C,V,Z,B,0,1,WinAmp 3d
    Rhapsody=key,Rhapsody.exe,xxx,Rhapsody,xxx,^P,^P,^S,^B,^F,0,1,Rhapsody
    #YahooMusicEngine=key,YahooMusicEngine.exe,YMPFrame,xxx,xxx,^ ,^ ,^S,$0x25,$0x27,0,1,Yahoo! Music Jukebox
    YahooMusicEngine=key,YahooMusicEngine.exe,YMPFrame,xxx,xxx,^ ,^ ,^S,$0x25,$0x27,0,1,Yahoo! Music Jukebox
    RealOne=wac,realplay.exe,GeminiWindowClass,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,RealOne Player
    WinAmp5=cmd,winamp.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5
    MediaLife=key,Medialife.exe,MediaLife Frame class,Logitech MediaLife,xxx, , ,S,P,N,0,1,MediaLife
    MediaLife4=wac,Medialife.exe,MediaLife Koan GDI Class,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,MediaLife
    PLAYDVD=key,PlayDVD.exe,PlayDVD Frame class,Play DVD,xxx, , ,S,P,N,0,1,PlayDVD
    Nero=wac,NeroHome.exe,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,NeroHome
    Nero2=wac,ShowTime.exe,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,ShowTime
    Nero3=wac,Nero.exe,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Nero
    BaoFeng=key,storm.exe,xxx,xxx,xxx, , ,$0x53,&0x21,&0x22,0,1,Bao Feng
    Koowoo=key,KwMusic.exe,xxx,xxx,xxx,$0x74,$0x74,$0x75,?0x25,?0x27,0,1,Koowoo
    TTing=key,tting.exe,xxx,xxx,xxx,@0x4f,@0x4f,@0x4f,@0x25,@0x27,0,1,TTing
    #Pctutu=key,PPStream.exe,xxx,xxx,xxx, , ,^S,^0x21,^0x22,0,1,Pctutu
    KuGou=key,KuGou.exe,xxx,xxx,xxx,@0x74,@0x74,@0x44,@0x25,@0x27,0,1,KuGou
    
    [Players.Run]
    MediaCenter=path,$WINDOWSeHome
    WinAmp3=reg,HKLM,SOFTWAREClassesWinamp3.FileDefaultIcon,,2
    Rhapsody=reg,HKCR,rhapDefaultIcon,,5
    WinAmp5=reg,HKLM,SOFTWAREClassesWinamp.FileDefaultIcon,,2
    YahooMusicEngine=reg,HKCR,TypeLib{2C5EBFB1-9174-4FE8-88DB-D1F460A9E83B}1.0win32,,
    Koowoo=reg,HKLM,SOFTWAREClasseskwfile_ksfshellopencommand,,5
    KuGou=path,C:Program Files (x86)KuGouKGMusic
    
    [Players.Display]
    MediaCenter=Windows Media Center
    RealOne=RealOne Player
    WinDVD=WinDVD
    WinDVD4=WinDVD4
    WinDVD5=WinDVD5
    WinDVD6=WinDVD6
    WinDVD7=WinDVD7
    MediaLife=MediaLife
    PLAYDVD=PlayDVD
    
    #{btn|key|msg|emg|cmd|wac},start,end,repeat start,,Donot send Play appcommand at end of FastForward operation 
    [Players.Seek]
    MusicMatch7=cmd,22861,xxx,1
    MediaLife=wac,xxx,xxx,1,0
    MediaLife4=wac,xxx,xxx,0,1
    PowerDVD=wac,xxx,,0,1
    MediaCenter=wac,xxx,xxx,0,1
    PLAYDVD=key,F,,0,1
    iTunes_104=wac,xxx,xxx,1,0
    iTunes=wac,xxx,xxx,1,0
    WinDVD7=key,F,0x0d,xxx,0
    WinDVD6=key,F,0x0d,xxx,0
    WinDVD5=key,F,0x0d,xxx,0
    WinDVD4=key,F,0x0d,xxx,0
    WinAmp5=cmd,40060,xxx,1,1
    MSMedia9=wac,xxx,xxx,0,0
    RealOne=key,^],,2,1
    
    #{btn|key|msg|emg|cmd|wac},start,end,repeat start,Donot send Play appcommand at end of rewind operation 
    [Players.Rewind]
    PowerDVD=wac,xxx,,0,1
    MusicMatch7=cmd,22860,xxx,1,0
    MediaLife=wac,xxx,xxx,1,1
    MediaLife4=wac,xxx,xxx,0,1
    MediaCenter=wac,xxx,xxx,0,1
    PLAYDVD=key,B,,0,1
    iTunes_104=wac,xxx,xxx,1,0
    iTunes=wac,xxx,xxx,1,0
    WinDVD7=key,R,0x0d,xxx,0
    WinDVD6=key,R,0x0d,xxx,0
    WinDVD5=key,R,0x0d,xxx,0
    WinDVD4=key,R,0x0d,xxx,0
    WinAmp5=cmd,40061,xxx,1,1
    MSMedia9=wac,xxx,xxx,0,0
    RealOne=key,^[,,2,1
    
    #list of Burn UI players (available on Burn button)
    [Players.BurnSupported]
    MSMedia9=True
    MusicMatch7=True
    Nero3=True
    
    #list of Record UI players (available on Record button)
    [Players.RecordSupported]
    MSMedia9=True
    MusicMatch7=True
    Nero3=True
    
    #list of 10" UI players (available on remote button)
    [Players.IsRemote]
    MDesktop=Trues
    MediaCenter=True
    MediaLife=True
    WinDVD=True
    WinDVD4=True
    WinDVD5=True
    WinDVD6=True
    WinDVD7=True
    PowerDVD=True
    PLAYDVD=True
  • 相关阅读:
    【SVN解决代码提交冲突】https://www.cnblogs.com/aaronLinux/p/5521844.html
    查询有2门及以上不及格科目的学生姓名及其平均成绩
    【Python】split
    【Python】文件处理
    【robotframework】打开浏览器提示:NoSuchWindowException: Message: Unable to get browser
    定位到新窗口
    8月1号
    【定位】https://blog.csdn.net/cyjs1988/article/details/76284289
    【Robotframework】脚本跑完后自动发送邮件
    jQuery Mobile Data 属性
  • 原文地址:https://www.cnblogs.com/emouse/p/3566720.html
Copyright © 2011-2022 走看看