Created
August 15, 2023 05:32
-
-
Save amay077/4ef31fd3063231be4c4fa45879effdad to your computer and use it in GitHub Desktop.
右Ctrl で IME ON、左Ctrl で OFF する AutoHotKey スクリプト。 forked from https://github.com/karakaram/alt-ime-ahk
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
; 左右 Alt キーの空打ちで IME の OFF/ON を切り替える | |
; | |
; 左 Alt キーの空打ちで IME を「英数」に切り替え | |
; 右 Alt キーの空打ちで IME を「かな」に切り替え | |
; Alt キーを押している間に他のキーを打つと通常の Alt キーとして動作 | |
; | |
; Author: karakaram http://www.karakaram.com/alt-ime-on-off | |
#Include IME.ahk | |
; Razer Synapseなど、キーカスタマイズ系のツールを併用しているときのエラー対策 | |
#MaxHotkeysPerInterval 350 | |
; 主要なキーを HotKey に設定し、何もせずパススルーする | |
*~a:: | |
*~b:: | |
*~c:: | |
*~d:: | |
*~e:: | |
*~f:: | |
*~g:: | |
*~h:: | |
*~i:: | |
*~j:: | |
*~k:: | |
*~l:: | |
*~m:: | |
*~n:: | |
*~o:: | |
*~p:: | |
*~q:: | |
*~r:: | |
*~s:: | |
*~t:: | |
*~u:: | |
*~v:: | |
*~w:: | |
*~x:: | |
*~y:: | |
*~z:: | |
*~1:: | |
*~2:: | |
*~3:: | |
*~4:: | |
*~5:: | |
*~6:: | |
*~7:: | |
*~8:: | |
*~9:: | |
*~0:: | |
*~F1:: | |
*~F2:: | |
*~F3:: | |
*~F4:: | |
*~F5:: | |
*~F6:: | |
*~F7:: | |
*~F8:: | |
*~F9:: | |
*~F10:: | |
*~F11:: | |
*~F12:: | |
*~`:: | |
*~~:: | |
*~!:: | |
*~@:: | |
*~#:: | |
*~$:: | |
*~%:: | |
*~^:: | |
*~&:: | |
*~*:: | |
*~(:: | |
*~):: | |
*~-:: | |
*~_:: | |
*~=:: | |
*~+:: | |
*~[:: | |
*~{:: | |
*~]:: | |
*~}:: | |
*~\:: | |
*~|:: | |
*~;:: | |
*~':: | |
*~":: | |
*~,:: | |
*~<:: | |
*~.:: | |
*~>:: | |
*~/:: | |
*~?:: | |
*~Esc:: | |
*~Tab:: | |
*~Space:: | |
*~Left:: | |
*~Right:: | |
*~Up:: | |
*~Down:: | |
*~Enter:: | |
*~PrintScreen:: | |
*~Delete:: | |
*~Home:: | |
*~End:: | |
*~PgUp:: | |
*~PgDn:: | |
Return | |
; 上部メニューがアクティブになるのを抑制 | |
*~LCtrl::Send {Blind}{vk07} | |
*~RCtrl::Send {Blind}{vk07} | |
; 左 Ctrl 空打ちで IME を OFF | |
LCtrl up:: | |
if (A_PriorHotkey == "*~LCtrl") | |
{ | |
IME_SET(0) | |
} | |
Return | |
; 右 Ctrl 空打ちで IME を ON | |
RCtrl up:: | |
if (A_PriorHotkey == "*~RCtrl") | |
{ | |
IME_SET(1) | |
} | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment