Windows Media Player、iTunes、VLC メディアプレイヤー で、再生・停止・送り・戻し などを
制御できるようにします。
GroupAdd, MonsterTV, ahk_class TApplication
GroupAdd, MonsterTV, ahk_class TFormVideo
GroupAdd, MonsterTV, ahk_class TFormEPG
GroupAdd, WMPlayer, ahk_class WMPlayerApp
GroupAdd, WMPlayer, ahk_class WMPTransition
GroupAdd, WMPlayer, ahk_class WMP Skin Host
;;
;; Windows Media Player
;;
#IfWinActive ahk_group WMPlayer
+^F13::Send ^p ; PLAY : Play and Pause WMP
+^F14::Send ^p ; PAUSE : Play and Pause WMP
^F24::Send ^s ; STOP : Stop WMP
+^F18::Send ^f ; NEXT : Next Track WMP
+^F15::Send ^b ; PREV : Prev Track WMP
+^F17::Send +^f ; SCAN : Forward
+^F16::Send +^b ; SCAN : Rewind
^F17::Send !{Return} ; DISPLAY : FullScreen
;;
;; iTunes
;;
#IfWinActive ahk_class iTunes
+^F13::PostMessage 793, 0, 917504 ; PLAY : Play and Pause iTunes
+^F14::PostMessage 793, 0, 917504 ; PAUSE : Play and Pause iTunes
^F24::PostMessage 793, 0, 851968 ; STOP : Stop iTunes
+^F18::PostMessage 793, 0, 720896 ; NEXT : Next Track iTunes
+^F15::PostMessage 793, 0, 786432 ; PREV : Prev Track iTunes
;;
;; VLC media player
;;
#IfWinActive VLC ahk_class QWidget
^F22::Send n ; START : Next Title
+^F13::Send {Space} ; PLAY : Play and Pause WMP
+^F14::Send {Space} ; PAUSE : Play and Pause WMP
^F24::Send s ; STOP : Stop WMP
+^F18::Send +n ; NEXT : Next Track WMP
+^F15::Send +p ; PREV : Prev Track WMP
+^F16::Send !{Left} ; SCAN<< : Slow
+^F17::Send !{Right} ; SCAN>> : Fast
^F17::Send {F11} ; DISPLAY : FullScreen
#IfWinActive
0 件のコメント:
コメントを投稿