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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appsnbcbweicheng",
3
- "version": "1.2.28",
3
+ "version": "1.2.29",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -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
@@ -1,3 +1,4 @@
1
+ 1.2.29 优化双击
1
2
  1.2.28 双击复制
2
3
  1.2.27 日历编辑
3
4
  1.2.26 投研平台
package/public/public.7z DELETED
Binary file