Last active
December 9, 2016 13:52
-
-
Save ksoda/11364702 to your computer and use it in GitHub Desktop.
Sun Type3 keyboard layout
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
; maps layout JIS -> Sun Type3 | |
; https://autohotkey.com/download/ahk-install.exe | |
; The keyboard hook monitors keystrokes for the purpose of activating hotstrings | |
; and any keyboard hotkeys not supported by RegisterHotkey | |
; (which is a function built into the operating system). | |
; It also supports a few other features such as the Input command. | |
#UseHook | |
sc03a:: | |
Input, InputKey, L1 T0.5 | |
Send, {Ctrl Down}{%InputKey%}{Ctrl Up} | |
return | |
*sc079::Ctrl ; henkan | |
*sc029::Esc ; han/zen | |
Esc::sc029 | |
*]::ENTER | |
*ENTER::BS | |
;BS::] ; exclusive w/ ANSI#BS | |
;; | |
; ANSI | |
*"::Send, {@} | |
*&::Send, {^} | |
*'::& | |
*(::* | |
*)::( | |
*+0::) | |
*=::_ | |
*^::= | |
*~::Send, {+} | |
*BS::` | |
*+BS::Send, {~} | |
*@::[ | |
*[::] | |
*+::Send, {:} | |
:::Send, {'} | |
**::" | |
sc073::shift ; extend right shift | |
; end ANSI | |
;; | |
; Moving | |
sc07B & h:: Send, {Blind}{Left} ; mu-henkan | |
sc07B & j:: Send, {Blind}{Down} | |
sc07B & k:: Send, {Blind}{Up} | |
sc07B & l:: Send, {Blind}{Right} | |
sc07B & 0:: Send, {Blind}{Home} | |
sc07B & $:: Send, {Blind}{End} | |
sc07B & b:: Send, ^{Left} | |
sc07B & w:: Send, ^{Right} | |
sc07B & u:: Send, {Blind}{PgUp} | |
sc07B & d:: Send, {Blind}{PgDn} | |
sc07B & r:: Send, {Ins} | |
sc07B & s:: Send, {Home}{Shift Down}{End}{Shift Up} | |
sc07B & Space:: Send, {sc029} | |
;; | |
; IME Tips | |
; context 直接入力 | |
; - hiragana | |
; context 入力文字なし | |
; + Esc, IMEを無効化 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ref. http://www.naney.org/diki/d/2009-01-31-keyboard.html
This script can be useful if you are using US keyboard.