-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClipFlow.ahk
29 lines (24 loc) · 712 Bytes
/
ClipFlow.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
#Requires AutoHotkey v2.0
#SingleInstance Force
#Include "./src/App.ahk"
CoordMode "Mouse", "Screen"
TraySetIcon A_ScriptDir . "\src\Assets\CFTray.ico"
; Initializing configuration
version := "1.4.0"
popupTitle := "ClipFlow " . version
winGroup := ["ahk_class SunAwtFrame", "旅客信息"]
config := useConfigJSON(
"./clipflow.config.json",
"clipflow.config.json",
)
; Gui
ClipFlow := Gui(, popupTitle)
ClipFlow.SetFont(, "微软雅黑")
ClipFlow.OnEvent("Close", (*) => utils.quitApp("ClipFlow", popupTitle, winGroup))
App(ClipFlow)
ClipFlow.Show()
; hotkeys setup
Pause:: ClipFlow.Show()
F11:: utils.cleanReload(winGroup)
#Hotif WinActive(popupTitle)
Esc:: ClipFlow.Hide()