百相鍵盤『き』 / USキーボード ―― その2
(続きである 百相鍵盤『き』 / USキーボード ―― その3 もご覧ください。)
右シフトキーに文字キーとシフトの両方の機能を持たせてみる。
AutoHotKeyで再挑戦です。
参考:http://lukewarm.s101.xrea.com/test/read.cgi/bbs/1157529465/86
ls_state=0 ~RShift:: if ((ls_state=0)&&GetKeyState("RShift","P")) ls_state=1 else ls_state=2 return ~RShift Up:: if((ls_state=1)&&(A_TimeSincePriorHotkey < 200)) { send, `` } ls_state=0 return ~+RShift:: if ((ls_state=0)&&GetKeyState("RShift","P")) ls_state=1 else ls_state=2 return ~+RShift Up:: if((ls_state=1)&&(A_TimeSincePriorHotkey < 300)) { send, ~ } ls_state=0 return
とりあえず動いた。