马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 wyhpylc 于 2023-1-12 10:53 编辑
我Python初学,所以很可能写的不好,大佬们多多指正import easygui as eg
import keyboard as k
import pyautogui as ag
ag.FAILSAFE = False
ag.PAUSE = 0
jinggao = eg.msgbox('请勿在每次点击间隔的那一框输入除了数字以外的任何东西,否则后果自负', '温馨提示', '知道了')
_ = 1
if jinggao == None:
_=0
while _ != 0:
between = eg.enterbox('每次点击的间隔为?', 'WYH连点器')
if between == None:
break
if between == '':
eg.msgbox('请勿输入空字符串', '警告', '知道了')
break
if between.isalpha():
eg.msgbox('请勿输入非法字符!', '警告', '知道了')
break
else:
between = float(between)
mouse = eg.buttonbox('点击左键右键还是中键?', 'WYH连点器', ['左键', '右键', '中键'])
if mouse == None:
break
jinggao1 = eg.msgbox('长按Ctrl开始连点,按Alt从新设置点击间隔及左中右键', 'WYH刷屏器', '按下该按钮开始连点')
if jinggao1 == None:
break
_ = 0
if mouse == '左键':
while True:
if k.is_pressed('ctrl'):
ag.click(clicks=1, interval=between, button='left')
elif k.is_pressed('alt'):
_ = 1
break
elif mouse == '右键':
while True:
if k.is_pressed('ctrl'):
ag.click(clicks=1, interval=between, button='right')
elif k.is_pressed('alt'):
_ = 1
break
elif mouse == '中键':
while True:
if k.is_pressed('ctrl'):
ag.click(clicks=1, interval=between, button='middle')
elif k.is_pressed('alt'):
_ = 1
break
给个评分吧
|