[AHK-] 使用Vista遙控器控制電腦

看板EzHotKey作者 (mingray/nosql)時間16年前 (2008/09/12 03:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
== 外掛連結== http://www.autohotkey.com/forum/topic6367.html == 使用方法 == 把 RemoteControl.ahk 的內容複製貼上後 修改 InputMsg(wParam, lParam, msg, hwnd) 函數在 msgbox %vals% 此行後的內容 如果不註解該行 可以看到事件代碼 接著可以自行加入如 ifequal, Vals, 事件代碼, gosub 子程序 == 範例 == HP TX2506配合內建Vista MCE遙控器 (不適用於XP Tablet 2005 Orz) <pre> ;msgbox %vals% ifequal, Vals, 020000, gosub RemoteReleaseKey2 ifequal, Vals, 020902, gosub RemoteInfo ifequal, Vals, 022402, gosub RemoteBack ifequal, Vals, 02b300, gosub RemoteForward ifequal, Vals, 02b400, gosub RemoteBackward ifequal, Vals, 02b500, gosub RemoteNext ifequal, Vals, 02b600, gosub RemotePrev ifequal, Vals, 02b700, gosub RemoteStop ifequal, Vals, 02cd00, gosub RemotePlayPause ifequal, Vals, 02e900, gosub RemoteVolPlus ifequal, Vals, 02e200, gosub RemoteVolMute ifequal, Vals, 02ea00, gosub RemoteVolMinus ifequal, Vals, 0000, gosub RemoteReleaseKey0 ifequal, Vals, 030d, gosub RemoteMediaCenter ifequal, Vals, 0380, gosub RemoteRepeat ifequal, Vals, 0324, gosub RemoteDVD </pre> 下略 然後只要接子程序如 <pre> RemoteForward: strActiveWinTitle := GetTrueWinTitle() if(strActiveWinTitle = "Media Player Classic") { Send {Ctrl down}{Right down} Send {Ctrl up}{Right up} }else{ ;msgbox %strActiveWinTitle% } return RemoteBackward: strActiveWinTitle := GetTrueWinTitle() if(strActiveWinTitle = "Media Player Classic") { Send {Ctrl down}{Left down} Send {Ctrl up}{Left up} }else{ ;msgbox %strActiveWinTitle% } return </pre> 這邊是我用來幫MPC做快轉用的 要配合取得標題的函數 -- -=TW Mabinogi=- -=個人網站=- 迪恩伺服器 飄月明 常出沒 ch3 http://s93.tku.edu.tw/~493370067/pyms/index.htm 堤爾克那公墓招生中 Q我有mabinogi輔助計算網頁 -=個人板=- telnet://kg.twbbs.org P_mingray telnet://bbs.kkcity.com.tw KKCity mingray -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.175.21
文章代碼(AID): #18oMgqe9 (EzHotKey)
文章代碼(AID): #18oMgqe9 (EzHotKey)