smart-clicker 1.1.11__py3-none-any.whl → 1.1.13__py3-none-any.whl
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.
- smart_clicker/core.py +9 -4
- {smart_clicker-1.1.11.dist-info → smart_clicker-1.1.13.dist-info}/METADATA +1 -1
- smart_clicker-1.1.13.dist-info/RECORD +7 -0
- smart_clicker-1.1.11.dist-info/RECORD +0 -7
- {smart_clicker-1.1.11.dist-info → smart_clicker-1.1.13.dist-info}/WHEEL +0 -0
- {smart_clicker-1.1.11.dist-info → smart_clicker-1.1.13.dist-info}/top_level.txt +0 -0
smart_clicker/core.py
CHANGED
|
@@ -110,15 +110,20 @@ class AutoBot:
|
|
|
110
110
|
if location:
|
|
111
111
|
filename = os.path.basename(img_path)
|
|
112
112
|
print(f"⚡ 识别到 [{filename}] -> 点击 {location}")
|
|
113
|
+
pyautogui.moveTo(location, duration=0.1)
|
|
114
|
+
time.sleep(0.5)
|
|
115
|
+
|
|
113
116
|
pyautogui.click(location)
|
|
114
|
-
time.sleep(0.
|
|
117
|
+
time.sleep(0.8)
|
|
115
118
|
|
|
116
119
|
pyautogui.doubleClick(location)
|
|
120
|
+
time.sleep(0.1)
|
|
121
|
+
|
|
117
122
|
|
|
118
|
-
# 方式2:右键点击
|
|
119
|
-
|
|
123
|
+
# # 方式2:右键点击
|
|
124
|
+
# # pyautogui.rightClick(location)
|
|
120
125
|
|
|
121
|
-
# 方式3:按住点击
|
|
126
|
+
# # 方式3:按住点击
|
|
122
127
|
pyautogui.mouseDown(location)
|
|
123
128
|
time.sleep(0.1)
|
|
124
129
|
pyautogui.mouseUp(location)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
smart_clicker/__init__.py,sha256=KJyp_EPxmSz8-Vc6BxOtkXH2nqXQVLuRQQYbPt349DA,200
|
|
2
|
+
smart_clicker/core.py,sha256=LDj4OqOhUYFnnmsbbbXdkutUmbaRjvhPUe-PO6sb7bw,5426
|
|
3
|
+
smart_clicker/snipper.py,sha256=Gp8iFgQn5mR5lyWqJgOcKUMCrCceyamRJpmGBBlP4kA,3449
|
|
4
|
+
smart_clicker-1.1.13.dist-info/METADATA,sha256=vKzgoq-c2844ExrauVOoMNqkHEVRNumODti7Tf76HyM,322
|
|
5
|
+
smart_clicker-1.1.13.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
6
|
+
smart_clicker-1.1.13.dist-info/top_level.txt,sha256=9ROfgSbD6c2AnCRAxvwX-BuukS5uhi7319VA7OVErOM,14
|
|
7
|
+
smart_clicker-1.1.13.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
smart_clicker/__init__.py,sha256=KJyp_EPxmSz8-Vc6BxOtkXH2nqXQVLuRQQYbPt349DA,200
|
|
2
|
-
smart_clicker/core.py,sha256=TQJ10Ahszbm7SOSP_1IuPlfNKtGIavNTc4HKjFYy71Q,5280
|
|
3
|
-
smart_clicker/snipper.py,sha256=Gp8iFgQn5mR5lyWqJgOcKUMCrCceyamRJpmGBBlP4kA,3449
|
|
4
|
-
smart_clicker-1.1.11.dist-info/METADATA,sha256=EdoVj9Le0usmQ7sCJb_asLrGt9A3WDr6rw7yhuUZqmM,322
|
|
5
|
-
smart_clicker-1.1.11.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
6
|
-
smart_clicker-1.1.11.dist-info/top_level.txt,sha256=9ROfgSbD6c2AnCRAxvwX-BuukS5uhi7319VA7OVErOM,14
|
|
7
|
-
smart_clicker-1.1.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|