真不理解有些常用小软件被某些财迷做的花里胡哨拿去光明正大卖钱的,广告一堆还难用。
此系列更更新实用小工具,可以在评论区留言想要的工具,看心情会更。
Python连点器,F键开关
import pyautogui
import time
import keyboard
def auto_clicker(interval):
"""
A simple auto-clicker that starts and stops with the F key.
:param interval: Time between each click (in seconds).
"""
print("Auto-clicker started. Press 'F' again to stop.")
try:
while True:
if keyboard.is_pressed('F'):
print("Auto-clicker stopped.")
break
pyautogui.click()
time.sleep(interval)
except KeyboardInterrupt:
print("Auto-clicker interrupted and stopped.")
# Set interval (time between clicks in seconds)
click_interval = 0.1 # Click every 0.1 seconds
print("Press 'F' to start the auto-clicker.")
# Wait for the 'F' key press to start the auto-clicker
keyboard.wait('F')
auto_clicker(click_interval)