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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smart_clicker
3
- Version: 1.1.11
3
+ Version: 1.1.12
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.11",
5
+ version="1.1.12",
6
6
  author_email="183732521@qq.com",
7
7
  packages=find_packages(),
8
8
  install_requires=[
@@ -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.1)
117
+ time.sleep(0.8)
115
118
 
116
- pyautogui.doubleClick(location)
119
+ # pyautogui.doubleClick(location)
117
120
 
118
- # 方式2:右键点击
119
- # pyautogui.rightClick(location)
121
+ # # 方式2:右键点击
122
+ # # pyautogui.rightClick(location)
120
123
 
121
- # 方式3:按住点击
122
- pyautogui.mouseDown(location)
123
- time.sleep(0.1)
124
- pyautogui.mouseUp(location)
125
- time.sleep(1)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smart-clicker
3
- Version: 1.1.11
3
+ Version: 1.1.12
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