Created
November 19, 2014 16:45
-
-
Save 844196/610d56e55f3b8f3f6bfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; HHKBを日本語配列設定の端末に繋げてもそのまま使えるようキーリマップ | |
*"::send, @ | |
*&::send, {^} | |
*'::send, & | |
*(::send, * | |
*)::send, ( | |
*+0::send, ) | |
*=::send, _ | |
*^::send, = | |
*~::send, {+} | |
*@::send, [ | |
*`::send, {{} | |
*[::send, ] | |
*{::send, {}} | |
*]::send, \ | |
*}::send, | | |
*+::send, : | |
+*::send, " | |
*vkBA::send, ' | |
; left alt+hjklでカーソルキー | |
<!h:: | |
Send,{Left} | |
return | |
<!l:: | |
Send,{Right} | |
return | |
<!j:: | |
Send,{Down} | |
return | |
<!k:: | |
Send,{Up} | |
return | |
; ^mで<CR> | |
^m:: | |
Send,{enter} | |
return | |
; ^hで<BS> | |
^h:: | |
Send,{BS} | |
return | |
; LWin, RWinでそれぞれIME切り替え | |
; Windows7だと動かなかったので、そのうちなんとかする | |
IME_ON(hWindow, IsON) | |
{ | |
; WM_IME_CONTROL = 0x0283 | |
; IMC_SETOPENSTATUS = 0x0006 | |
bufCurrentDetectMode := A_DetectHiddenWindows | |
DetectHiddenWindows, On | |
buf := DllCall("user32.dll\SendMessageA", "UInt", DllCall("imm32.dll\ImmGetDefaultIMEWnd", "Uint",hWindow), "UInt", 0x0283, "Int", 0x0006, "Int", IsON) | |
DetectHiddenWindows, %bufCurrentDetectMode% | |
Return buf | |
} | |
LWin::IME_ON(WinExist("A"), False) | |
RWin::IME_ON(WinExist("A"), True) | |
; 使ってる範囲でショートカットをLWin+hogeでリマップ | |
Lwin & C::Send,^c | |
Lwin & x::Send,^x | |
Lwin & v::Send,^v | |
Lwin & s::Send,^s | |
Lwin & a::Send,^a | |
Lwin & q::WinClose,A | |
Lwin & z::Send,^z | |
Lwin & r::send, #r | |
Lwin & w::send, ^w | |
; ログ整理用スニペット | |
::,s1::IF(AND(D2=D4,E2=E4),"delete","") | |
::,s2::IF(AND(B3=B2,C3=C2),"delete","") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment