def main(): print("欢迎来到阴阳师联盟!海之旅") arg = 0 tt = 0.0 #获取所有阴阳师句柄 list = get() while True: # time.sleep(tt) # 设置隔2秒运行一次 #循环所有句柄 for hd in list: loop(hd)
def main(): print("欢迎来到痒痒鼠!") arg = 0 tt = 5 # if sys.argv.__len__() > 1: #多人组队 # arg = sys.argv[1] # else: # tt = 1 #获取所有阴阳师句柄 list = get() while True: time.sleep(tt) # 设置隔2秒运行一次 #循环所有句柄 for hd in list: loop(hd)
def main(): print("欢迎来到阴阳师联盟!") arg = 0 tt = 1 # if sys.argv.__len__() > 1: #多人组队 # arg = sys.argv[1] # else: # tt = 1 #获取所有阴阳师句柄 list = get() # list = [395746, 263310] while True: # time.sleep(tt) # 设置隔2秒运行一次 #循环所有句柄 for hd in list: loop(hd)
def main(): # 获取所有阴阳师句柄 hd_list = get() hd_len = len(hd_list) if hd_len == 0: print("未发现阴阳师窗口!") raise SystemExit elif hd_len == 1: target_hd = hd_list[0] else: for inx, hd in enumerate(hd_list): print(f'窗口{inx + 1}: {hd}') num = int(input(f'当前有{hd_len}个阴阳师窗口,请选择要运行的窗口:') or 1) - 1 if not hd_list[num]: print('窗口选择失败,请重新运行') time.sleep(3000) raise SystemExit target_hd = hd_list[num] print('当前运行的阴阳师窗口:', target_hd) print('选择运行脚本类型:') task_list = [ { 'name': "自动御魂", 'cls': Yuhun, "tpl_dir": "yuhun" }, { "name": "自动斗技", 'cls': DouJi, "tpl_dir": "douji" }, { "name": "自动觉醒", "cls": JueXing, "tpl_dir": "juexing" }, { "name": "结界突破", 'cls': Jiejie, "tpl_dir": "jiejie" }, { "name": "妖气封印", 'cls': YaoQi, "tpl_dir": "yaoqi" }, { "name": "自动寮破", 'cls': LiaoTuPo, "tpl_dir": "liaotupo" }, { "name": "自动寮宴", 'cls': LiaoYan, "tpl_dir": "liaoyan" }, { "name": "厕纸召唤", 'cls': Summon, "tpl_dir": "summon" }, ] for inx, task in enumerate(task_list): print(f"{inx + 1}、{task.get('name')}") try: task_num = int(input("输入任务类型:") or 1) - 1 except ValueError: task_num = 0 task = task_list[task_num] task_cls = task.get("cls") func = task_cls(hwnd=target_hd, task_name=task.get("name"), tpl_dir=task.get("tpl_dir")) func.start()
else: x = rect[0] + res["result"][0] y = rect[1] + res["result"][1] move_x = random.randint(int(x) - 2, int(x) + 2) move_y = random.randint(int(y) - 2, int(y) + 2) print(move_x, move_y) click_it((move_x, move_y), hwnd) # 判断是否洗完澡 if filename == "reward.png": print("洗澡线程停止执行......") return print("洗澡线程停止执行......") return hd = get() hwnd = hd[0] def currentThread_job(): while True: time.sleep(2) print("当前活跃线程:" + time.ctime(), end="") print(threading.enumerate()) def main(): Flag = True threading.Thread(target=currentThread_job, name="currentThread").start() while True: remberTime = threading.Thread(target=remberTime_job, name="remberTime")