Skip to content

Instantly share code, notes, and snippets.

@o-kawara
Created June 17, 2021 10:06
Show Gist options
  • Save o-kawara/8e178f9a9cfdcefc083c71e541e0f3a2 to your computer and use it in GitHub Desktop.
Save o-kawara/8e178f9a9cfdcefc083c71e541e0f3a2 to your computer and use it in GitHub Desktop.
AltキーでIME制御(Escでもオフ)
;
; IME設定変更(Windows 10の新しいIMEでキーの割り当てを変更すべし
;
;KC_LANG1 -> 変換、KC_LANG2 -> 無変換
sc071 Up::Send,{vk1Dsc07B}
sc072 Up::Send,{vk1Csc079}
;
; 参考URL https://github.com/karakaram/alt-ime-ahk
;
; 上部メニューがアクティブになるのを抑制
*~LAlt::Send {Blind}{vk07}
*~RAlt::Send {Blind}{vk07}
; 左 Alt 空打ちで IME を OFF
LAlt Up::
if (A_PriorHotkey == "*~LAlt")
{
Send,{vk1Dsc07B}
}
Return
; 右 Alt 空打ちで IME を ON
RAlt Up::
if (A_PriorHotkey == "*~RAlt")
{
Send,{vk1Csc079}
}
Return
; Escでもオフ
~Esc Up::Send,{vk1Dsc07B}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment