-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestIMEv2.ahk
59 lines (51 loc) · 1.29 KB
/
testIMEv2.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#Requires AutoHotkey v2.0
MsgBox "This script will run only on v2.0, keyboard language is " . Get_languege_name()
SetTimer(Interrupt16,16)
return
;=======================================================================
; IME 状態のセット
F1::
{
vImeMode := IME_GET()
if vImeMode == 0
IME_SET(1)
else
IME_SET(0)
return
}
;=======================================================================
; IME 入力モードの設定
F2::
{
vImeConvMode := IME_GetConvMode()
if vImeConvMode == 9
IME_SetConvMode(11)
else
if vImeConvMode == 11
IME_SetConvMode(0)
else
if vImeConvMode == 0
IME_SetConvMode(3)
else
if vImeConvMode == 3
IME_SetConvMode(8)
if vImeConvMode == 8
IME_SetConvMode(9)
return
}
#include .\IMEv2.ahk
;=======================================================================
; タイマー割込み
; 16ミリ秒ごとにIME関数を呼び出す
;-----------------------------------------------------------------------
Interrupt16()
{
global
vImeMode := IME_GET()
vImeConvMode := IME_GetConvMode()
vImeGetSentenceMode := IME_GetSentenceMode()
szConverting := IME_GetConverting()
g_debugout := vImeMode . ":" . vImeConvMode . ":" . szConverting . ":" . vImeGetSentenceMode ; . ":" . g_stGTI . ":" . g_stGTI2
Tooltip(g_debugout, 0, 0, 2) ; debug
return
}