def try_get_qq(self): self.qq_name = self.lineEdit_qqname.text() if self.qq_name != '': handle = Window.check_window(self.qq_name) if handle != 0: Fuben.get_qq_cmd(self.qq_name) return 0
def my_set_windows_process(log_queue, qq_name, yys1, yys2, yys3, yys4): fuben = Fuben(log_queue, qq_name) try: fuben.set_windows(yys1) fuben.set_windows(yys2) fuben.set_windows(yys3) fuben.set_windows(yys4) fuben.add_log("设置窗口成功\r\n") except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) send_qq(fuben, qq_name, str_log)
def my_team_kun_25_process(log_queue, qq_name, yys1, yys2, UP, BOSS, QingMax, Beater, BeatMax, imax_times, Chapter): fuben = Fuben(log_queue, qq_name) try: if fuben.team_kun_25(yys1, yys2, UP, BOSS, QingMax, Beater, BeatMax, imax_times, Chapter) != 0: fuben.add_log("阴阳师 组队探索副本 不对\r\n") except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("组队探索副本 结束\r\n")
def initwindow(self): fuben = Fuben(self.log_queue, "") try: fuben.set_windows('1') except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) print(str_log) fuben.add_log("初始化窗口 结束\r\n")
def my_xue_yue_process(log_queue, qq_name, yys1, yys2, yys3, yys4, inum, imax_times, mod, fengmod): fuben = Fuben(log_queue, qq_name) try: fuben.xue_yue(yys1, yys2, yys3, yys4, inum, imax_times, mod, fengmod=fengmod) except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) fuben.add_log("结束\r\n")
def my_hun_shi_process(log_queue, qq_name, yys1, yys2, yys3, imax_times): fuben = Fuben(log_queue, qq_name) try: fuben.hun_shi(yys1, yys2, yys3, imax_times) except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("魂十 结束\r\n")
def my_jie_jie_process(log_queue, qq_name, yys1, yys2, yys3, yys4, inum): fuben = Fuben(log_queue, qq_name) try: fuben.jie_jie(yys1, yys2, yys3, yys4, inum) except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) print(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("结界 结束\r\n")
def my_test_main_process(log_queue, qq_name): fuben = Fuben(log_queue, qq_name) try: fuben.test_main() except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) print(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("test_main 结束\r\n")
def my_tang_suo_jie_jie_process(log_queue, qq_name, yys1, yys2, UP, BOSS, QingMax, Beater, BeatMax, imax_times, Chapter): fuben = Fuben(log_queue, qq_name) try: while 1: start_time = datetime.datetime.now() fuben.team_kun_25(yys1, yys2, UP, BOSS, QingMax, Beater, BeatMax, imax_times, Chapter) fuben.jie_jie(yys1, yys2, '1', '1', 2, maxt=True) end_time = datetime.datetime.now() if (end_time - start_time).seconds < 60: break except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("组队探索副本 结束\r\n")
def my_xue_yue_process(log_queue, qq_name, yys1, yys2, yys3, yys4, inum, imax_times, mod, buyyan, buyyu): fuben = Fuben(log_queue, qq_name) try: fuben.xue_yue(yys1, yys2, yys3, yys4, inum, imax_times, mod, buyyan=buyyan, buyyu=buyyu) except Exception as e: str_log = "Exception:" + traceback.format_exc() + "\r\n" fuben.add_log(str_log) send_qq(fuben, qq_name, str_log) fuben.add_log("刷血月副本 结束\r\n")