-
Notifications
You must be signed in to change notification settings - Fork 3
/
WIN 7.au3
41 lines (37 loc) · 1.21 KB
/
WIN 7.au3
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
;ต้นฉบับ
;https://priabroy.com/2014/01/09/%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B9%80%E0%B8%9B%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%A9/
;^ = Ctrl
;! = Alt
;# = WinKey (Meta)
;+ = Shift</code>
HotKeySet("`", "change") ;Registers Alt + Space
HotKeySet("_", "change") ;Registers Alt + Space
#NoTrayIcon
Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown.
Opt("TrayAutoPause", 0 )
TraySetState()
TraySetToolTip("Switch Input Language")
$aboutitem = TrayCreateItem("เกี่ยวกับโปรแกรม")
TrayCreateItem("")
$exititem = TrayCreateItem("ออก")
TraySetState()
While 1
$msg = TrayGetMsg()
Select
Case $msg = 0
ContinueLoop
Case $msg = $aboutitem
ShellExecute("https://github.com/sumonchai/Switch-Input-Language/releases")
Case $msg = $exititem
ExitLoop
EndSelect
WEnd
Exit
While 1
Sleep(100) ; An idle loop.
WEnd
Func change()
Send ("{ALTDOWN}") ;Hold down Alt
Sleep(50) ;Wait 100 milliseconds
Send("{LSHIFT}{ALTUP}")
EndFunc