def main(): config.init() splash.start() print("launching please wait...") pil_logger = logging.getLogger('PIL') pil_logger.setLevel(logging.INFO) window_to_hide = win32gui.GetForegroundWindow() if not gui.check_eula(): return bot = EngineEventHandler(lambda: gui_window) gui_window = GUI(lambda: bot) hotkey.initalize() logging.info(f"Fishybot v{fishy.__version__}") initialize(window_to_hide) gui_window.start() bot.start_event_handler() config.stop()
def main(): print("launching please wait...") window_to_hide = win32gui.GetForegroundWindow() c = Config() if not gui.check_eula(c): return bot = EngineEventHandler(c, lambda: gui_window) gui_window = GUI(c, lambda: bot) hotkey.initalize() gui_window.start() logging.info(f"Fishybot v{fishy.__version__}") initialize(c, window_to_hide) bot.start_event_handler()
time.sleep(0.05) t -= 0.05 self._curr_rotate_y = t fishing_mode.subscribers.remove(found_hole) return self._hole_found_flag def rotate_back(self): while self._curr_rotate_y > 0.01: mse.move(0, -FullAuto.rotate_by) time.sleep(0.05) self._curr_rotate_y -= 0.05 def toggle_start(self): if self.start and FullAuto.state != State.NONE: logging.info("Please turn off RECORDING/PLAYING first") return self.start = not self.start if self.start: self.thread = Thread(target=self.run) self.thread.start() if __name__ == '__main__': logging.getLogger("").setLevel(logging.DEBUG) hotkey.initalize() # noinspection PyTypeChecker bot = FullAuto(None) bot.toggle_start()