#include ime_func.ahk Send,{vkF0sc03A} IME_OFF("A") ;MS-Officeで動作しない ;IME Tooltip,16:半英数`n19:半カナ`n24:全英数`n25:ひらがな`n27:全カタカナ`n`n今のモード:%ret% ;InputMode=num ;NumpadMult::Send,{vkF0sc03A} ;Gui,Add,ListView, w40 h30 r%w% vLv Icon,name ;himl:=DllCall("ImageList_Create",Int,30,Int,20,UInt,0x21,Int,w,Int,w,UInt) ;LV_SetImageList(himl,0) ;n:=IL_Add(himl,"dlblue1n.gif",0,1) ;LV_Add("Icon" . n ,"n") ;Gui,Add,Picture, w40 h30 ,dlblue1n.gif ;Gui,Destroy ;Gui,+AlwaysOnTop ;Gui,Font,C0000ff S30 Underline,MS ゴシック ;Gui,Add,Text,,[1]わ`r`n[2]を ;Gui,Font,Norm PrevKey=NoInput InputMode=init Gui,Add,Picture, w40 h30 ,dlblue1n.gif Gui,Destroy ;Gui,+AlwaysOnTop Gui,Font,C0000ff S30 Underline,MS ゴシック Gui,Add,Text,,[1]ひらがな`r`n[2]カタカナ`r`n[3]英大`r`n[4]英小`r`n[5]数字 Gui,Show NumpadDiv:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=7 { Send,w Send,o } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 InputMode=init Gui,Add,Picture, w40 h30 ,dlblue1n.gif Gui,Destroy ;Gui,+AlwaysOnTop Gui,Font,C0000ff S30 Underline,MS ゴシック Gui,Add,Text,,[1]ひらがな`r`n[2]カタカナ`r`n[3]英大`r`n[4]英小`r`n[5]数字 Gui,Show } return NumpadMult:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=7 { Send,w Send,o } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 Send,{Esc} PrevKey=NoInput } return NumpadAdd:: Gui,Destroy Send,{Space} ;space hennkann return NumpadSub:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,{DEL} } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if PrevKey=NoInput { Send,{BS} } else { PrevKey=NoInput } } return NumpadIns:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=NumpadLeft { ;Send,+{Left} ;shift plus Left } else if PrevKey=NumpadRight { ;Send,+{Right} ;shift plus Right } else if PrevKey=NumpadUp { ;Send,+{Up} ;shift plus Up } else if PrevKey=NumpadDown { ;Send,+{Down} ;shift plus Down } else if PrevKey=NumpadIns { ;Send,{Ins} ;shift plus Down } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 ;if PrevKey=NoInput ;{ PrevKey=NumpadIns Send,{Shift} ;} } return NumpadLeft:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=NumpadIns { ;Send,+{Left} ;shift plus Left } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 ;if PrevKey=NoInput ;{ PrevKey=NumpadLeft Send,{Left} ;} } return NumpadRight:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=NumpadIns { ;Send,+{Right} ;shift plus Right } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 ;if PrevKey=NoInput ;{ PrevKey=NumpadRight Send,{Right} ;} } return NumpadUp:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=NumpadIns { ;Send,+{Up} ;shift plus Right } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 ;if PrevKey=NoInput ;{ PrevKey=NumpadUp Send,{Up} ;} } return NumpadDown:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=NumpadIns { ;Send,+{Down} ;shift plus Right } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 ;if PrevKey=NoInput ;{ PrevKey=NumpadDown Send,{Down} ;} } return Numpad7:: ;first key Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^s ;ctrl s } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { Send,{vkF2sc070} ;hiragana katakana key press ;Send,{vk1Dsc07B} ;muhenkan key press ;MsgBox kana IME_ON("A") ;IME_SetConvMode("A",25) InputMode=kana Gui,Hide } else if InputMode=num { Send,1 } else if InputMode=englarge { if PrevKey=7 ;actions { Send,. PrevOut=. PrevKey=NoInput } else if PrevKey=8 { Send,+a PrevOut=LA PrevKey=NoInput } else if PrevKey=9 { Send,+d PrevOut=LD PrevKey=NoInput } else if PrevKey=4 { Send,+g PrevOut=LG PrevKey=NoInput } else if PrevKey=5 { Send,+j PrevOut=LJ PrevKey=NoInput } else if PrevKey=6 { Send,+m PrevOut=LM PrevKey=NoInput } else if PrevKey=1 { Send,+p PrevOut=LP PrevKey=NoInput } else if PrevKey=2 { Send,+t PrevOut=LT PrevKey=NoInput } else if PrevKey=3 { Send,+w PrevOut=LW PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=7 } } else if InputMode=engsmall { if PrevKey=7 ;actions { Send,. PrevOut=. PrevKey=NoInput } else if PrevKey=8 { Send,a PrevOut=a PrevKey=NoInput } else if PrevKey=9 { Send,d PrevOut=d PrevKey=NoInput } else if PrevKey=4 { Send,g PrevOut=g PrevKey=NoInput } else if PrevKey=5 { Send,j PrevOut=j PrevKey=NoInput } else if PrevKey=6 { Send,m PrevOut=m PrevKey=NoInput } else if PrevKey=1 { Send,p PrevOut=p PrevKey=NoInput } else if PrevKey=2 { Send,t PrevOut=t PrevKey=NoInput } else if PrevKey=3 { Send,w PrevOut=w PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=7 } } else if InputMode=kana { if PrevKey=7 ;actions { Send,a PrevOut=a PrevKey=NoInput } else if PrevKey=8 { Send,k Send,a PrevOut=ka PrevKey=NoInput } else if PrevKey=9 { Send,s Send,a PrevOut=sa PrevKey=NoInput } else if PrevKey=4 { Send,t Send,a PrevOut=ta PrevKey=NoInput } else if PrevKey=5 { Send,n Send,a PrevOut=na PrevKey=NoInput } else if PrevKey=6 { Send,h Send,a PrevOut=ha PrevKey=NoInput } else if PrevKey=1 { Send,m Send,a PrevOut=ma PrevKey=NoInput } else if PrevKey=2 { Send,y Send,a PrevOut=ya PrevKey=NoInput } else if PrevKey=3 { Send,r Send,a PrevOut=ra PrevKey=NoInput } else if PrevKey=0 { Send,w Send,a PrevOut=ka PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=7 } } } return Numpad8:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^f ;ctrl f } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { Send,+{vkF2sc070} ;hiragana katakana key press -> shift press -> katakanamode ;MsgBox kana IME_ON("A") ;IME_SetConvMode("A",25) InputMode=kana Gui,Hide } else if InputMode=num { Send,2 } else if InputMode=englarge { if PrevKey=7 ;actions { Send,/ PrevOut=/ PrevKey=NoInput } else if PrevKey=8 { Send,+b PrevOut=LB PrevKey=NoInput } else if PrevKey=9 { Send,+e PrevOut=LE PrevKey=NoInput } else if PrevKey=4 { Send,+h PrevOut=LH PrevKey=NoInput } else if PrevKey=5 { Send,+k PrevOut=LK PrevKey=NoInput } else if PrevKey=6 { Send,+n PrevOut=LN PrevKey=NoInput } else if PrevKey=1 { Send,+q PrevOut=LQ PrevKey=NoInput } else if PrevKey=2 { Send,+u PrevOut=LU PrevKey=NoInput } else if PrevKey=3 { Send,+x PrevOut=LX PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=8 } } else if InputMode=engsmall { if PrevKey=7 ;actions { Send,/ PrevOut=/ PrevKey=NoInput } else if PrevKey=8 { Send,b PrevOut=b PrevKey=NoInput } else if PrevKey=9 { Send,e PrevOut=e PrevKey=NoInput } else if PrevKey=4 { Send,h PrevOut=h PrevKey=NoInput } else if PrevKey=5 { Send,k PrevOut=k PrevKey=NoInput } else if PrevKey=6 { Send,n PrevOut=n PrevKey=NoInput } else if PrevKey=1 { Send,q PrevOut=q PrevKey=NoInput } else if PrevKey=2 { Send,u PrevOut=u PrevKey=NoInput } else if PrevKey=3 { Send,x PrevOut=x PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=8 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { Send,i PrevOut=i PrevKey=NoInput } else if PrevKey=8 { Send,k Send,i PrevOut=ki PrevKey=NoInput } else if PrevKey=9 { Send,s Send,i PrevOut=si PrevKey=NoInput } else if PrevKey=4 { Send,t Send,i PrevOut=ti PrevKey=NoInput } else if PrevKey=5 { Send,n Send,i PrevOut=ni PrevKey=NoInput } else if PrevKey=6 { Send,h Send,i PrevOut=hi PrevKey=NoInput } else if PrevKey=1 { Send,m Send,i PrevOut=mi PrevKey=NoInput } else if PrevKey=2 { ;Send,y Send,i PrevOut=i PrevKey=NoInput } else if PrevKey=3 { Send,r Send,i PrevOut=ri PrevKey=NoInput } else if PrevKey=0 { Send,w Send,o PrevOut=wo PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=8 } } } return Numpad9:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,{vkF3sc029} ;zenkaku hankaku } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { Send,{vkF0sc03A} ;caps key single press ;MsgBox eng IME_ON("A") IME_SetConvMode("A",16) InputMode=englarge Gui,Hide } else if InputMode=num { Send,3 } else if InputMode=englarge { if PrevKey=7 ;actions { Send,@ PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { Send,+c PrevOut=LC PrevKey=NoInput } else if PrevKey=9 { Send,+f PrevOut=LF PrevKey=NoInput } else if PrevKey=4 { Send,+i PrevOut=LI PrevKey=NoInput } else if PrevKey=5 { Send,+l PrevOut=LL PrevKey=NoInput } else if PrevKey=6 { Send,+o PrevOut=LO PrevKey=NoInput } else if PrevKey=1 { Send,+r PrevOut=LR PrevKey=NoInput } else if PrevKey=2 { Send,+v PrevOut=LV PrevKey=NoInput } else if PrevKey=3 { Send,+y PrevOut=LY PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=9 } } else if InputMode=engsmall { if PrevKey=7 ;actions { Send,@ PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { Send,c PrevOut=c PrevKey=NoInput } else if PrevKey=9 { Send,f PrevOut=f PrevKey=NoInput } else if PrevKey=4 { Send,i PrevOut=i PrevKey=NoInput } else if PrevKey=5 { Send,l PrevOut=l PrevKey=NoInput } else if PrevKey=6 { Send,o PrevOut=o PrevKey=NoInput } else if PrevKey=1 { Send,r PrevOut=r PrevKey=NoInput } else if PrevKey=2 { Send,v PrevOut=v PrevKey=NoInput } else if PrevKey=3 { Send,y PrevOut=y PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=9 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { Send,u PrevOut=u PrevKey=NoInput } else if PrevKey=8 { Send,k Send,u PrevOut=ku PrevKey=NoInput } else if PrevKey=9 { Send,s Send,u PrevOut=su PrevKey=NoInput } else if PrevKey=4 { Send,t Send,u PrevOut=tu PrevKey=NoInput } else if PrevKey=5 { Send,n Send,u PrevOut=nu PrevKey=NoInput } else if PrevKey=6 { Send,h Send,u PrevOut=hu PrevKey=NoInput } else if PrevKey=1 { Send,m Send,u PrevOut=mu PrevKey=NoInput } else if PrevKey=2 { Send,y Send,u PrevOut=yu PrevKey=NoInput } else if PrevKey=3 { Send,r Send,u PrevOut=ru PrevKey=NoInput } else if PrevKey=0 { Send,n Send,n PrevOut=nn PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=9 } } else { } } return Numpad4:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,{vk1Csc079} ;henkan } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { Send,{vkF0sc03A} ;caps key single press ;MsgBox eng IME_ON("A") IME_SetConvMode("A",16) InputMode=engsmall Gui,Hide } else if InputMode=num { Send,4 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=LC PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=LF PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=LI PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=LL PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=LO PrevKey=NoInput } else if PrevKey=1 { Send,+s PrevOut=LS PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=LV PrevKey=NoInput } else if PrevKey=3 { Send,+z PrevOut=LZ PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=4 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=+c PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=+f PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=+i PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=+l PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=+o PrevKey=NoInput } else if PrevKey=1 { Send,s PrevOut=s PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=+v PrevKey=NoInput } else if PrevKey=3 { Send,z PrevOut=z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=4 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { Send,e PrevOut=e PrevKey=NoInput } else if PrevKey=8 { Send,k Send,e PrevOut=ke PrevKey=NoInput } else if PrevKey=9 { Send,s Send,e PrevOut=se PrevKey=NoInput } else if PrevKey=4 { Send,t Send,e PrevOut=te PrevKey=NoInput } else if PrevKey=5 { Send,n Send,e PrevOut=ne PrevKey=NoInput } else if PrevKey=6 { Send,h Send,e PrevOut=he PrevKey=NoInput } else if PrevKey=1 { Send,m Send,e PrevOut=me PrevKey=NoInput } else if PrevKey=2 { ;Send,y Send,e PrevOut=e PrevKey=NoInput } else if PrevKey=3 { Send,r Send,e PrevOut=re PrevKey=NoInput } else if PrevKey=0 { Send,`, PrevOut=CAMMA PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=4 } } else { } } return Numpad5:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,{vk1Dsc07B} } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { Send,{vkF0sc03A} ;caps key single press ;MsgBox num IME_OFF("A") InputMode=num Gui,Destroy Gui,+AlwaysOnTop Gui,Font,C0000ff S30 Underline,MS ゴシック Gui,Add,Text,,数字 Gui,Font,Norm ;Gui,Destroy ;Gui,Add,Picture, w40 h30 ,dlblue1n.gif Gui,Show } else if InputMode=num { Send,5 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=5 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=5 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { Send,o PrevOut=o PrevKey=NoInput } else if PrevKey=8 { Send,k Send,o PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { Send,s Send,o PrevOut=so PrevKey=NoInput } else if PrevKey=4 { Send,t Send,o PrevOut=to PrevKey=NoInput } else if PrevKey=5 { Send,n Send,o PrevOut=no PrevKey=NoInput } else if PrevKey=6 { Send,h Send,o PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { Send,m Send,o PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { Send,y Send,o PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { Send,r Send,o PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { Send,`. PrevOut=POINT PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=5 } } else { } } return Numpad6:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^z ;ctrl z } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { } else if InputMode=num { Send,6 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=6 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=6 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { ;Send,o ;PrevOut=o PrevKey=NoInput } else if PrevKey=8 { ;Send,k ;Send,o ;PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { ;Send,s ;Send,o ;PrevOut=so PrevKey=NoInput } else if PrevKey=4 { ;Send,t ;Send,o ;PrevOut=to PrevKey=NoInput } else if PrevKey=5 { ;Send,n ;Send,o ;PrevOut=no PrevKey=NoInput } else if PrevKey=6 { ;Send,h ;Send,o ;PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { ;Send,m ;Send,o ;PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { ;Send,y ;Send,o ;PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { ;Send,r ;Send,o ;PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { Send,- PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=6 } } else { } } return Numpad1:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^x ;ctrl x } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { } else if InputMode=num { Send,7 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=1 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=1 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { ;Send,o ;PrevOut=o PrevKey=NoInput } else if PrevKey=8 { ;Send,k ;Send,o ;PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { ;Send,s ;Send,o ;PrevOut=so PrevKey=NoInput } else if PrevKey=4 { ;Send,t ;Send,o ;PrevOut=to PrevKey=NoInput } else if PrevKey=5 { ;Send,n ;Send,o ;PrevOut=no PrevKey=NoInput } else if PrevKey=6 { ;Send,h ;Send,o ;PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { ;Send,m ;Send,o ;PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { ;Send,y ;Send,o ;PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { ;Send,r ;Send,o ;PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { Send,/ PrevOut=/ PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=1 } } else { } } return Numpad2:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^c ; ctrl c } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { } else if InputMode=num { Send,8 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=2 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=2 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { ;Send,o ;PrevOut=o PrevKey=NoInput } else if PrevKey=8 { ;Send,k ;Send,o ;PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { ;Send,s ;Send,o ;PrevOut=so PrevKey=NoInput } else if PrevKey=4 { ;Send,t ;Send,o ;PrevOut=to PrevKey=NoInput } else if PrevKey=5 { ;Send,n ;Send,o ;PrevOut=no PrevKey=NoInput } else if PrevKey=6 { ;Send,h ;Send,o ;PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { ;Send,m ;Send,o ;PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { ;Send,y ;Send,o ;PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { ;Send,r ;Send,o ;PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { Send,+1 PrevOut=+1 PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=2 } } else { } } return Numpad3:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=0 { Send,^v ; ctrl v } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { } else if InputMode=num { Send,9 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=3 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=3 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { ;Send,o ;PrevOut=o PrevKey=NoInput } else if PrevKey=8 { ;Send,k ;Send,o ;PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { ;Send,s ;Send,o ;PrevOut=so PrevKey=NoInput } else if PrevKey=4 { ;Send,t ;Send,o ;PrevOut=to PrevKey=NoInput } else if PrevKey=5 { ;Send,n ;Send,o ;PrevOut=no PrevKey=NoInput } else if PrevKey=6 { ;Send,h ;Send,o ;PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { ;Send,m ;Send,o ;PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { ;Send,y ;Send,o ;PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { ;Send,r ;Send,o ;PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { Send,+/ PrevOut=+/ PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=3 } } else { } } return Numpad0:: Gui,Destroy if A_TickCount < %keysimul% ;Simultaneous { ;some action if PrevKey=7 { Send,^s ;ctrl s } else if PrevKey=8 { Send,^f ;ctrl f } else if PrevKey=9 { Send,{vkF3sc029} ;zenkaku-hankaku } else if PrevKey=4 { Send,{vk1Csc079} ;henkan } else if PrevKey=5 { Send,{vk1Dsc07B} ;muhenkan } else if PrevKey=6 { Send,^z ;ctrl z } else if PrevKey=1 { Send,^x ;ctrl x } else if PrevKey=2 { Send,^c ;ctrl c } else if PrevKey=3 { Send,^v ;ctrl v } PrevKey=NoInput keysimul=0 } else ;Not Simultaneous { keysimul=%A_TickCount% keysimul+=150 if InputMode=init { } else if InputMode=num { Send,0 } else if InputMode=englarge { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=0 } } else if InputMode=engsmall { if PrevKey=7 ;actions { ;Send,@ ;PrevOut=@ PrevKey=NoInput } else if PrevKey=8 { ;Send,+c ;PrevOut=C PrevKey=NoInput } else if PrevKey=9 { ;Send,+f ;PrevOut=F PrevKey=NoInput } else if PrevKey=4 { ;Send,+i ;PrevOut=I PrevKey=NoInput } else if PrevKey=5 { ;Send,+l ;PrevOut=L PrevKey=NoInput } else if PrevKey=6 { ;Send,+o ;PrevOut=O PrevKey=NoInput } else if PrevKey=1 { ;Send,+s ;PrevOut=S PrevKey=NoInput } else if PrevKey=2 { ;Send,+v ;PrevOut=V PrevKey=NoInput } else if PrevKey=3 { ;Send,+z ;PrevOut=Z PrevKey=NoInput } else if PrevKey=0 { ;Send,- ;PrevOut=- PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=0 } } else if InputMode=kana { if PrevKey=x ;actions { ;Send,i ;PrevOut=i ;PrevKey=NoInput } else if PrevKey=7 { ;Send,o ;PrevOut=o PrevKey=NoInput } else if PrevKey=8 { ;Send,k ;Send,o ;PrevOut=ko PrevKey=NoInput } else if PrevKey=9 { ;Send,s ;Send,o ;PrevOut=so PrevKey=NoInput } else if PrevKey=4 { ;Send,t ;Send,o ;PrevOut=to PrevKey=NoInput } else if PrevKey=5 { ;Send,n ;Send,o ;PrevOut=no PrevKey=NoInput } else if PrevKey=6 { ;Send,h ;Send,o ;PrevOut=ho PrevKey=NoInput } else if PrevKey=1 { ;Send,m ;Send,o ;PrevOut=mo PrevKey=NoInput } else if PrevKey=2 { ;Send,y ;Send,o ;PrevOut=yo PrevKey=NoInput } else if PrevKey=3 { ;Send,r ;Send,o ;PrevOut=ro PrevKey=NoInput } else if PrevKey=0 { ;Send,`. ;PrevOut=`. PrevKey=NoInput } else if PrevKey=NoInput { PrevKey=0 ;Gui,Add,Picture, w40 h30 ,dlblue1n.gif ;Gui,Destroy ;Gui,+AlwaysOnTop ;comment out needed for MS-IME Gui,Font,C0000ff S30 Underline,MS ゴシック Gui,Add,Text,,[1]わ`r`n[2]を`r`n[3]ん`r`n[4]、`r`n[5]。`r`n[6]ー PrevKey=0 Gui,Show PrevKey=0 } } else { } } return NumpadDot:: Gui,Destroy if InputMode=englarge { if PrevOut=LA { ;Send,{BS} Send,{BS} Send,a PrevOut=a } else if PrevOut=LB { ;Send,{BS} Send,{BS} Send,b PrevOut=b } else if PrevOut=LC { ;Send,{BS} Send,{BS} Send,c PrevOut=c } else if PrevOut=LD { ;Send,{BS} Send,{BS} Send,d PrevOut=d } else if PrevOut=LE { ;Send,{BS} Send,{BS} Send,e PrevOut=e } else if PrevOut=LF { ;Send,{BS} Send,{BS} Send,f PrevOut=f } else if PrevOut=LG { ;Send,{BS} Send,{BS} Send,g PrevOut=g } else if PrevOut=LH { ;Send,{BS} Send,{BS} Send,h PrevOut=h } else if PrevOut=LI { ;Send,{BS} Send,{BS} Send,i PrevOut=i } else if PrevOut=LJ { ;Send,{BS} Send,{BS} Send,j PrevOut=j } else if PrevOut=LK { ;Send,{BS} Send,{BS} Send,k PrevOut=k } else if PrevOut=LL { ;Send,{BS} Send,{BS} Send,l PrevOut=l } else if PrevOut=LM { ;Send,{BS} Send,{BS} Send,m PrevOut=m } else if PrevOut=LN { ;Send,{BS} Send,{BS} Send,n PrevOut=n } else if PrevOut=LO { ;Send,{BS} Send,{BS} Send,o PrevOut=o } else if PrevOut=LP { ;Send,{BS} Send,{BS} Send,p PrevOut=p } else if PrevOut=LQ { ;Send,{BS} Send,{BS} Send,q PrevOut=q } else if PrevOut=LR { ;Send,{BS} Send,{BS} Send,r PrevOut=r } else if PrevOut=LS { ;Send,{BS} Send,{BS} Send,s PrevOut=s } else if PrevOut=LT { ;Send,{BS} Send,{BS} Send,t PrevOut=t } else if PrevOut=LU { ;Send,{BS} Send,{BS} Send,u PrevOut=u } else if PrevOut=LV { ;Send,{BS} Send,{BS} Send,v PrevOut=v } else if PrevOut=LW { ;Send,{BS} Send,{BS} Send,w PrevOut=w } else if PrevOut=LX { ;Send,{BS} Send,{BS} Send,x PrevOut=x } else if PrevOut=LY { ;Send,{BS} Send,{BS} Send,y PrevOut=y } else if PrevOut=LZ { ;Send,{BS} Send,{BS} Send,z PrevOut=z } else if PrevOut=a { ;Send,{BS} Send,{BS} Send,+a PrevOut=LA } else if PrevOut=b { ;Send,{BS} Send,{BS} Send,+b PrevOut=LB } else if PrevOut=c { ;Send,{BS} Send,{BS} Send,+c PrevOut=LC } else if PrevOut=d { ;Send,{BS} Send,{BS} Send,+d PrevOut=LD } else if PrevOut=e { ;Send,{BS} Send,{BS} Send,+e PrevOut=LE } else if PrevOut=f { ;Send,{BS} Send,{BS} Send,+f PrevOut=LF } else if PrevOut=g { ;Send,{BS} Send,{BS} Send,+g PrevOut=LG } else if PrevOut=h { ;Send,{BS} Send,{BS} Send,+h PrevOut=LH } else if PrevOut=i { ;Send,{BS} Send,{BS} Send,+i PrevOut=LI } else if PrevOut=j { ;Send,{BS} Send,{BS} Send,+j PrevOut=LJ } else if PrevOut=k { ;Send,{BS} Send,{BS} Send,+k PrevOut=LK } else if PrevOut=l { ;Send,{BS} Send,{BS} Send,+l PrevOut=LL } else if PrevOut=m { ;Send,{BS} Send,{BS} Send,+m PrevOut=LM } else if PrevOut=n { ;Send,{BS} Send,{BS} Send,+n PrevOut=LN } else if PrevOut=o { ;Send,{BS} Send,{BS} Send,+o PrevOut=LO } else if PrevOut=p { ;Send,{BS} Send,{BS} Send,+p PrevOut=LP } else if PrevOut=q { ;Send,{BS} Send,{BS} Send,+q PrevOut=LQ } else if PrevOut=r { ;Send,{BS} Send,{BS} Send,+r PrevOut=LR } else if PrevOut=s { ;Send,{BS} Send,{BS} Send,+s PrevOut=LS } else if PrevOut=t { ;Send,{BS} Send,{BS} Send,+t PrevOut=LT } else if PrevOut=u { ;Send,{BS} Send,{BS} Send,+u PrevOut=LU } else if PrevOut=v { ;Send,{BS} Send,{BS} Send,+v PrevOut=LV } else if PrevOut=w { ;Send,{BS} Send,{BS} Send,+w PrevOut=LW } else if PrevOut=x { ;Send,{BS} Send,{BS} Send,+x PrevOut=LX } else if PrevOut=y { ;Send,{BS} Send,{BS} Send,+y PrevOut=LY } else if PrevOut=z { ;Send,{BS} Send,{BS} Send,+z PrevOut=LZ } } else if InputMode=engsmall { if PrevOut=LA { ;Send,{BS} Send,{BS} Send,a PrevOut=a } else if PrevOut=LB { ;Send,{BS} Send,{BS} Send,b PrevOut=b } else if PrevOut=LC { ;Send,{BS} Send,{BS} Send,c PrevOut=c } else if PrevOut=LD { ;Send,{BS} Send,{BS} Send,d PrevOut=d } else if PrevOut=LE { ;Send,{BS} Send,{BS} Send,e PrevOut=e } else if PrevOut=LF { ;Send,{BS} Send,{BS} Send,f PrevOut=f } else if PrevOut=LG { ;Send,{BS} Send,{BS} Send,g PrevOut=g } else if PrevOut=LH { ;Send,{BS} Send,{BS} Send,h PrevOut=h } else if PrevOut=LI { ;Send,{BS} Send,{BS} Send,i PrevOut=i } else if PrevOut=LJ { ;Send,{BS} Send,{BS} Send,j PrevOut=j } else if PrevOut=LK { ;Send,{BS} Send,{BS} Send,k PrevOut=k } else if PrevOut=LL { ;Send,{BS} Send,{BS} Send,l PrevOut=l } else if PrevOut=LM { ;Send,{BS} Send,{BS} Send,m PrevOut=m } else if PrevOut=LN { ;Send,{BS} Send,{BS} Send,n PrevOut=n } else if PrevOut=LO { ;Send,{BS} Send,{BS} Send,o PrevOut=o } else if PrevOut=LP { ;Send,{BS} Send,{BS} Send,p PrevOut=p } else if PrevOut=LQ { ;Send,{BS} Send,{BS} Send,q PrevOut=q } else if PrevOut=LR { ;Send,{BS} Send,{BS} Send,r PrevOut=r } else if PrevOut=LS { ;Send,{BS} Send,{BS} Send,s PrevOut=s } else if PrevOut=LT { ;Send,{BS} Send,{BS} Send,t PrevOut=t } else if PrevOut=LU { ;Send,{BS} Send,{BS} Send,u PrevOut=u } else if PrevOut=LV { ;Send,{BS} Send,{BS} Send,v PrevOut=v } else if PrevOut=LW { ;Send,{BS} Send,{BS} Send,w PrevOut=w } else if PrevOut=LX { ;Send,{BS} Send,{BS} Send,x PrevOut=x } else if PrevOut=LY { ;Send,{BS} Send,{BS} Send,y PrevOut=y } else if PrevOut=LZ { ;Send,{BS} Send,{BS} Send,z PrevOut=z } else if PrevOut=a { ;Send,{BS} Send,{BS} Send,+a PrevOut=LA } else if PrevOut=b { ;Send,{BS} Send,{BS} Send,+b PrevOut=LB } else if PrevOut=c { ;Send,{BS} Send,{BS} Send,+c PrevOut=LC } else if PrevOut=d { ;Send,{BS} Send,{BS} Send,+d PrevOut=LD } else if PrevOut=e { ;Send,{BS} Send,{BS} Send,+e PrevOut=LE } else if PrevOut=f { ;Send,{BS} Send,{BS} Send,+f PrevOut=LF } else if PrevOut=g { ;Send,{BS} Send,{BS} Send,+g PrevOut=LG } else if PrevOut=h { ;Send,{BS} Send,{BS} Send,+h PrevOut=LH } else if PrevOut=i { ;Send,{BS} Send,{BS} Send,+i PrevOut=LI } else if PrevOut=j { ;Send,{BS} Send,{BS} Send,+j PrevOut=LJ } else if PrevOut=k { ;Send,{BS} Send,{BS} Send,+k PrevOut=LK } else if PrevOut=l { ;Send,{BS} Send,{BS} Send,+l PrevOut=LL } else if PrevOut=m { ;Send,{BS} Send,{BS} Send,+m PrevOut=LM } else if PrevOut=n { ;Send,{BS} Send,{BS} Send,+n PrevOut=LN } else if PrevOut=o { ;Send,{BS} Send,{BS} Send,+o PrevOut=LO } else if PrevOut=p { ;Send,{BS} Send,{BS} Send,+p PrevOut=LP } else if PrevOut=q { ;Send,{BS} Send,{BS} Send,+q PrevOut=LQ } else if PrevOut=r { ;Send,{BS} Send,{BS} Send,+r PrevOut=LR } else if PrevOut=s { ;Send,{BS} Send,{BS} Send,+s PrevOut=LS } else if PrevOut=t { ;Send,{BS} Send,{BS} Send,+t PrevOut=LT } else if PrevOut=u { ;Send,{BS} Send,{BS} Send,+u PrevOut=LU } else if PrevOut=v { ;Send,{BS} Send,{BS} Send,+v PrevOut=LV } else if PrevOut=w { ;Send,{BS} Send,{BS} Send,+w PrevOut=LW } else if PrevOut=x { ;Send,{BS} Send,{BS} Send,+x PrevOut=LX } else if PrevOut=y { ;Send,{BS} Send,{BS} Send,+y PrevOut=LY } else if PrevOut=z { ;Send,{BS} Send,{BS} Send,+z PrevOut=LZ } } else if InputMode=kana { if PrevOut=a { Send,{BS} Send,l Send,a PrevOut=la } else if PrevOut=i { Send,{BS} Send,l Send,i PrevOut=li } else if PrevOut=u { Send,{BS} Send,l Send,u PrevOut=lu } else if PrevOut=e { Send,{BS} Send,l Send,e PrevOut=le } else if PrevOut=o { Send,{BS} Send,l Send,o PrevOut=lo } else if PrevOut=la { Send,{BS} Send,a PrevOut=a } if PrevOut=li { Send,{BS} Send,i PrevOut=i } if PrevOut=lu { Send,{BS} Send,u PrevOut=u } if PrevOut=le { Send,{BS} Send,e PrevOut=e } if PrevOut=lo { Send,{BS} Send,o PrevOut=o } else if PrevOut=ka { ;Send,{BS} Send,{BS} Send,g Send,a PrevOut=ga } else if PrevOut=ki { ;Send,{BS} Send,{BS} Send,g Send,i PrevOut=gi } else if PrevOut=ku { ;Send,{BS} Send,{BS} Send,g Send,u PrevOut=gu } else if PrevOut=ke { ;Send,{BS} Send,{BS} Send,g Send,e PrevOut=ge } else if PrevOut=ko { ;Send,{BS} Send,{BS} Send,g Send,o PrevOut=go } else if PrevOut=ga { ;Send,{BS} Send,{BS} Send,k Send,a PrevOut=ka } else if PrevOut=gi { Send,{BS} Send,k Send,i PrevOut=ki } else if PrevOut=gu { Send,{BS} Send,k Send,u PrevOut=ku } else if PrevOut=ge { Send,{BS} Send,k Send,e PrevOut=ke } else if PrevOut=go { Send,{BS} Send,k Send,o PrevOut=ko } else if PrevOut=sa { ;Send,{BS} Send,{BS} Send,z Send,a PrevOut=za } else if PrevOut=si { ;Send,{BS} Send,{BS} Send,z Send,i PrevOut=zi } else if PrevOut=su { ;Send,{BS} Send,{BS} Send,z Send,u PrevOut=zu } else if PrevOut=se { ;Send,{BS} Send,{BS} Send,z Send,e PrevOut=ze } else if PrevOut=so { ;Send,{BS} Send,{BS} Send,z Send,o PrevOut=zo } else if PrevOut=za { ;Send,{BS} Send,{BS} Send,s Send,a PrevOut=sa } else if PrevOut=zi { Send,{BS} Send,s Send,i PrevOut=si } else if PrevOut=zu { Send,{BS} Send,s Send,u PrevOut=su } else if PrevOut=ze { Send,{BS} Send,s Send,e PrevOut=se } else if PrevOut=zo { Send,{BS} Send,s Send,o PrevOut=so } else if PrevOut=ta { ;Send,{BS} Send,{BS} Send,d Send,a PrevOut=da } else if PrevOut=ti { ;Send,{BS} Send,{BS} Send,d Send,i PrevOut=di } else if PrevOut=tu { ;Send,{BS} Send,{BS} Send,d Send,u PrevOut=du } else if PrevOut=te { ;Send,{BS} Send,{BS} Send,d Send,e PrevOut=de } else if PrevOut=to { ;Send,{BS} Send,{BS} Send,d Send,o PrevOut=do } else if PrevOut=da { ;Send,{BS} Send,{BS} Send,t Send,a PrevOut=ta } else if PrevOut=di { Send,{BS} Send,t Send,i PrevOut=ti } else if PrevOut=du { Send,{BS} Send,l Send,t Send,u PrevOut=ltu } else if PrevOut=ltu { Send,{BS} Send,t Send,u PrevOut=tu } else if PrevOut=de { Send,{BS} Send,t Send,e PrevOut=te } else if PrevOut=do { Send,{BS} Send,t Send,o PrevOut=to } else if PrevOut=ha { ;Send,{BS} Send,{BS} Send,b Send,a PrevOut=ba } else if PrevOut=hi { ;Send,{BS} Send,{BS} Send,b Send,i PrevOut=bi } else if PrevOut=hu { ;Send,{BS} Send,{BS} Send,b Send,u PrevOut=bu } else if PrevOut=he { ;Send,{BS} Send,{BS} Send,b Send,e PrevOut=be } else if PrevOut=ho { ;Send,{BS} Send,{BS} Send,b Send,o PrevOut=bo } else if PrevOut=ba { ;Send,{BS} Send,{BS} Send,p Send,a PrevOut=pa } else if PrevOut=bi { Send,{BS} Send,p Send,i PrevOut=pi } else if PrevOut=bu { Send,{BS} Send,p Send,u PrevOut=pu } else if PrevOut=be { Send,{BS} Send,p Send,e PrevOut=pe } else if PrevOut=bo { Send,{BS} Send,p Send,o PrevOut=po } else if PrevOut=pa { ;Send,{BS} Send,{BS} Send,h Send,a PrevOut=ha } else if PrevOut=pi { Send,{BS} Send,h Send,i PrevOut=hi } else if PrevOut=pu { Send,{BS} Send,h Send,u PrevOut=hu } else if PrevOut=pe { Send,{BS} Send,h Send,e PrevOut=he } else if PrevOut=po { Send,{BS} Send,h Send,o PrevOut=ho } else if PrevOut=ya { ;Send,{BS} Send,{BS} Send,l Send,y Send,a PrevOut=lya } else if PrevOut=yu { ;Send,{BS} Send,{BS} Send,l Send,y Send,u PrevOut=lyu } else if PrevOut=yo { ;Send,{BS} Send,{BS} Send,l Send,y Send,o PrevOut=lyo } else if PrevOut=lya { Send,{BS} Send,y Send,a PrevOut=ya } else if PrevOut=lyu { Send,{BS} Send,y Send,u PrevOut=yu } else if PrevOut=lyo { Send,{BS} Send,y Send,o PrevOut=yo } } else if InputMode=num { Send,`. } return ScrollLock:: ;;if A_TickCount < %ctrldouble% ;;{ ;; ;some action ;; Send,t ;; ctrldouble=0 ;;} ;;else ;;{ ;; ctrldouble=%A_TickCount% ;; ctrldouble+=400 ;;} ; ;; Run,iexplore.exe "http://iwao-otsuka.com/" ; ; Gui,Add,ListView, w640 h480 r%w% vLv Icon,name ; himl:=DllCall("ImageList_Create",Int,256,Int,256,UInt,0x21,Int,w,Int,w,UInt) ; LV_SetImageList(himl,0) ; n:=IL_Add(himl,"dlblue1n.gif",0,1) ; LV_Add("Icon" . n ,"aaaaaaaa") ; Gui,Show ; Gui,Hide return