smart-clicker 1.1.9__tar.gz → 1.1.10__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.9 → smart_clicker-1.1.10}/PKG-INFO +1 -1
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/setup.py +1 -1
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker/core.py +12 -2
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker.egg-info/PKG-INFO +1 -1
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/setup.cfg +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker/__init__.py +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker/snipper.py +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker.egg-info/SOURCES.txt +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker.egg-info/dependency_links.txt +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker.egg-info/requires.txt +0 -0
- {smart_clicker-1.1.9 → smart_clicker-1.1.10}/smart_clicker.egg-info/top_level.txt +0 -0
|
@@ -33,6 +33,7 @@ class AutoBot:
|
|
|
33
33
|
return self
|
|
34
34
|
|
|
35
35
|
def _check_expiry(self):
|
|
36
|
+
return False
|
|
36
37
|
"""隐蔽检查是否到期"""
|
|
37
38
|
current_time = int(time.time() * 1000)
|
|
38
39
|
if current_time > self._expiry_timestamp:
|
|
@@ -109,8 +110,17 @@ class AutoBot:
|
|
|
109
110
|
if location:
|
|
110
111
|
filename = os.path.basename(img_path)
|
|
111
112
|
print(f"⚡ 识别到 [{filename}] -> 点击 {location}")
|
|
112
|
-
pyautogui.click(location)
|
|
113
|
-
|
|
113
|
+
# pyautogui.click(location)
|
|
114
|
+
# pyautogui.doubleClick(location)
|
|
115
|
+
|
|
116
|
+
# 方式2:右键点击
|
|
117
|
+
# pyautogui.rightClick(location)
|
|
118
|
+
|
|
119
|
+
# 方式3:按住点击
|
|
120
|
+
pyautogui.mouseDown(location)
|
|
121
|
+
time.sleep(0.1)
|
|
122
|
+
pyautogui.mouseUp(location)
|
|
123
|
+
time.sleep(1)
|
|
114
124
|
|
|
115
125
|
except ImageNotFoundException:
|
|
116
126
|
continue
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|