smart-clicker 1.1.11__tar.gz → 1.1.12__tar.gz
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-1.1.11 → smart_clicker-1.1.12}/PKG-INFO +1 -1
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/setup.py +1 -1
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker/core.py +12 -9
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker.egg-info/PKG-INFO +1 -1
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/setup.cfg +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker/__init__.py +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker/snipper.py +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker.egg-info/SOURCES.txt +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker.egg-info/dependency_links.txt +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker.egg-info/requires.txt +0 -0
- {smart_clicker-1.1.11 → smart_clicker-1.1.12}/smart_clicker.egg-info/top_level.txt +0 -0
|
@@ -110,19 +110,22 @@ 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)
|
|
117
120
|
|
|
118
|
-
# 方式2:右键点击
|
|
119
|
-
|
|
121
|
+
# # 方式2:右键点击
|
|
122
|
+
# # pyautogui.rightClick(location)
|
|
120
123
|
|
|
121
|
-
# 方式3:按住点击
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
# # 方式3:按住点击
|
|
125
|
+
# pyautogui.mouseDown(location)
|
|
126
|
+
# time.sleep(0.1)
|
|
127
|
+
# pyautogui.mouseUp(location)
|
|
128
|
+
# time.sleep(1)
|
|
126
129
|
|
|
127
130
|
except ImageNotFoundException:
|
|
128
131
|
continue
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|