appsnbcbweicheng 1.2.28 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
; ===== 记录鼠标按下位置 =====
|
|
2
|
+
~LButton::
|
|
3
|
+
MouseGetPos, startX, startY
|
|
4
|
+
return
|
|
5
|
+
|
|
6
|
+
; ===== 鼠标松开 =====
|
|
7
|
+
~LButton Up::
|
|
8
|
+
MouseGetPos, endX, endY
|
|
9
|
+
|
|
10
|
+
; 排除终端
|
|
11
|
+
WinGetClass, class, A
|
|
12
|
+
if (class = "ConsoleWindowClass") ; cmd
|
|
13
|
+
return
|
|
14
|
+
|
|
15
|
+
if (class = "CASCADIA_HOSTING_WINDOW_CLASS") ; Windows Terminal
|
|
16
|
+
return
|
|
17
|
+
|
|
18
|
+
if (class = "VirtualConsoleClass")
|
|
19
|
+
return
|
|
20
|
+
|
|
21
|
+
; ===== 双击 =====
|
|
22
|
+
isDoubleClick := (A_PriorHotkey = "~LButton Up" && A_TimeSincePriorHotkey < 300)
|
|
23
|
+
|
|
24
|
+
; ===== 拖动 =====
|
|
25
|
+
isDrag := (Abs(endX - startX) > 5 || Abs(endY - startY) > 5)
|
|
26
|
+
|
|
27
|
+
if (!isDoubleClick && !isDrag)
|
|
28
|
+
return
|
|
29
|
+
|
|
30
|
+
Sleep 100
|
|
31
|
+
|
|
32
|
+
oldClipboard := ClipboardAll
|
|
33
|
+
Clipboard := ""
|
|
34
|
+
|
|
35
|
+
Send ^c
|
|
36
|
+
ClipWait, 0.2
|
|
37
|
+
|
|
38
|
+
if (ErrorLevel || Clipboard = "")
|
|
39
|
+
{
|
|
40
|
+
Clipboard := oldClipboard
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return
|
package/readme.md
CHANGED
package/public/public.7z
DELETED
|
Binary file
|