WYH连点器
本帖最后由 wyhpylc 于 2023-1-12 10:53 编辑我Python初学,所以很可能写的不好,大佬们多多指正{:10_257:}
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
给个评分吧{:10_254:}
{:10_257:}
你的名字缩写和我一样? 元豪 发表于 2023-1-12 10:45
你的名字缩写和我一样?
啊哈!真的吗?! 元豪 发表于 2023-1-12 10:45
你的名字缩写和我一样?
有个坏消息,我没有权限加好友】 要沉没了?别啊!顶!{:10_266:} wyhpylc 发表于 2023-1-12 18:18
要沉没了?别啊!顶!
评分了,{:10_270:} liuhongrun2022 发表于 2023-1-12 19:38
评分了,
谢谢!!!!!{:10_257:}
页:
[1]