まずはリモコン固有のキーコードを把握。
.RCIファイルが該当するのでRM-1500.RCIをtextで開く。
フォルダパスは自分の場合
C:\Program files\Creative\SB Digital Music SX\Entertainment Center\RCRx\
RCIファイル書式
[RCKeyCode########] リモコンボタンの割り当てコード
MMCDEvent=#### ボタンが押されたとき送信されるコード
KeyName=''String'' よくわからんがボタン自体の名前っぽ (Identifies the button pressed.)
OneShot=# ボリュームやカーソルのように押しっぱなしで信号を送り続けるか単発かの識別
たぶん0が連発で7が単発
次は大事なkeymapファイル(.key)について。
パスは
C:\Program files\Creative\SB Digital Music SX\Entertainment Center\KeyMap\
Keyファイル書式
[RC Key Map Information]
Name=wxWindowClassNR
Version=1.30
By=Creative Technology Ltd.
Company=Creative Technology Ltd.
Copyright=Copyright (C) 2001 Creative Technology Ltd. All Rights Reserved.
Comments=
重要なのは2行目で、Name=で操作対象のウィンドウを指定する。たぶんプロセス名あたりかと勝手に決めつけてみる。
[KeyEvent####] #### .RCIファイルで指定されたMMCDEventが送られた時のイベント(実質ボタンIDと考えてよさげ)
KeyName=''String'' ''String'' はボタンが押されたときリモートセンターのスクリーンに表示されるメッセージっぽい。(直訳)
Notification=# # -1か2が入り、-1はASCIIキーコードをKeyEventRemapに入れる。2はCtrlなど組み合わせる処理に用いる。
Creativeは情報開示してないが海外で解析した馬鹿がいるので下記参照
KeyEventRemap=## ## にはマッピングしたいキーコードを入力する。
131137=ctrl+a 121153=shift+a
131138=ctrl+b 121154=shift+b
131139=ctrl+c 121155=shift+c
131140=ctrl+d 121156=shift+d
131141=ctrl+e 121157=shift+e
131142=ctrl+f 121158=shift+f
131143=ctrl+g 121159=shift+g
131144=ctrl+h 121160=shift+h
131145=ctrl+i 121161=shift+i
131146=ctrl+j 121162=shift+j
131147=ctrl+k 121163=shift+k
131148=ctrl+l 121164=shift+l
131149=ctrl+m 121165=shift+m
131150=ctrl+n 121166=shift+n
131151=ctrl+o 121167=shift+o
131152=ctrl+p 121168=shift+p
131153=ctrl+q 121169=shift+q
131154=ctrl+r 121170=shift+r
131155=ctrl+s 121171=shift+s
131156=ctrl+t 121172=shift+t
131157=ctrl+u 121173=shift+u
131158=ctrl+v 121174=shift+v
131159=ctrl+w 121175=shift+w
131160=ctrl+x 121176=shift+x
131161=ctrl+y 121177=shift+y
131162=ctrl+z 121178=shift+z
121136=shift+0
121137=shift+1
121138=shift+2
121139=shift+3
121140=shift+4
121141=shift+5
121142=shift+6
121143=shift+7
121144=shift+8
('A`)ツカレタ 121145=shift+9
最終更新:2009年07月23日 21:42