smart-clicker 1.1.14__tar.gz → 1.1.15__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.14 → smart_clicker-1.1.15}/PKG-INFO +1 -1
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/setup.py +1 -1
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker/core.py +8 -8
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker.egg-info/PKG-INFO +1 -1
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/setup.cfg +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker/__init__.py +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker/snipper.py +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker.egg-info/SOURCES.txt +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker.egg-info/dependency_links.txt +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker.egg-info/requires.txt +0 -0
- {smart_clicker-1.1.14 → smart_clicker-1.1.15}/smart_clicker.egg-info/top_level.txt +0 -0
|
@@ -110,11 +110,11 @@ 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(2)
|
|
113
|
+
# pyautogui.moveTo(location, duration=0.1)
|
|
114
|
+
# time.sleep(2)
|
|
115
115
|
|
|
116
|
-
pyautogui.click(location)
|
|
117
|
-
time.sleep(10)
|
|
116
|
+
# # pyautogui.click(location)
|
|
117
|
+
# time.sleep(10)
|
|
118
118
|
|
|
119
119
|
# pyautogui.doubleClick(location)
|
|
120
120
|
# time.sleep(0.1)
|
|
@@ -124,10 +124,10 @@ class AutoBot:
|
|
|
124
124
|
# # # pyautogui.rightClick(location)
|
|
125
125
|
|
|
126
126
|
# # # 方式3:按住点击
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
pyautogui.mouseDown(location)
|
|
128
|
+
time.sleep(2)
|
|
129
|
+
pyautogui.mouseUp(location)
|
|
130
|
+
time.sleep(5)
|
|
131
131
|
|
|
132
132
|
except ImageNotFoundException:
|
|
133
133
|
continue
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|