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
#SingleInstance Force
#NoTrayIcon 
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetTitleMatchMode,2
IniRead, PasteKey, SymbolList.ini, Setting, pasteKey, !p
IniRead, _HotKey, SymbolList.ini, Setting, hotKey, ^Enter
Hotkey, IfWinActive, ahk_class PCMan
Hotkey, %_HotKey%, MakeWindow
return

GuiClose:
Gui, Destroy
return

SendToPCMan:
Gui, Submit
Gui, Destroy
T=%clipboard%
StringReplace,ColorChoice,ColorChoice,`r
clipboard=%ColorChoice%
WinActivate,ahk_class PCMan
ControlSend,,%PasteKey%,ahk_class PCMan
clipboard=%T%
return

MakeWindow:
FileRead, SymbolList, SymbolList.txt
Gui, +AlwaysOnTop +Border +ToolWindow +Delimiter`n
Gui, Add, ListBox, vColorChoice w400 h300 choose1,%SymbolList% 
Gui, Add, Button, gEdit, 編輯表情符號
Gui, Add, Button, Default Hidden x0 y0 gSendToPCMan
Gui, Show,, 快速表情符號輸入
return

Edit:
run,SymbolList.txt
Gui,Destroy
return

GuiEscape:
Gui, Destroy
return