smart-clicker 1.1.9__tar.gz → 1.1.11__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smart_clicker
3
- Version: 1.1.9
3
+ Version: 1.1.11
4
4
  Summary: A simple screen automation tool with hotkey snapshot capability.淘宝:阳阳软件市场
5
5
  Author: jiaobenxiaozi
6
6
  Author-email: 183732521@qq.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="smart_clicker",
5
- version="1.1.9",
5
+ version="1.1.11",
6
6
  author_email="183732521@qq.com",
7
7
  packages=find_packages(),
8
8
  install_requires=[
@@ -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:
@@ -110,7 +111,18 @@ class AutoBot:
110
111
  filename = os.path.basename(img_path)
111
112
  print(f"⚡ 识别到 [{filename}] -> 点击 {location}")
112
113
  pyautogui.click(location)
113
- time.sleep(0.5)
114
+ time.sleep(0.1)
115
+
116
+ pyautogui.doubleClick(location)
117
+
118
+ # 方式2:右键点击
119
+ # pyautogui.rightClick(location)
120
+
121
+ # 方式3:按住点击
122
+ pyautogui.mouseDown(location)
123
+ time.sleep(0.1)
124
+ pyautogui.mouseUp(location)
125
+ time.sleep(1)
114
126
 
115
127
  except ImageNotFoundException:
116
128
  continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smart-clicker
3
- Version: 1.1.9
3
+ Version: 1.1.11
4
4
  Summary: A simple screen automation tool with hotkey snapshot capability.淘宝:阳阳软件市场
5
5
  Author: jiaobenxiaozi
6
6
  Author-email: 183732521@qq.com
File without changes