diff --git a/fishy/__init__.py b/fishy/__init__.py index 24dd90e..4584417 100644 --- a/fishy/__init__.py +++ b/fishy/__init__.py @@ -1,2 +1,2 @@ from fishy.__main__ import main -__version__ = "0.3.13" +__version__ = "0.3.14" diff --git a/fishy/engine/semifisher/fishing_event.py b/fishy/engine/semifisher/fishing_event.py index 67ffb2e..dca4d1a 100644 --- a/fishy/engine/semifisher/fishing_event.py +++ b/fishy/engine/semifisher/fishing_event.py @@ -7,11 +7,11 @@ import logging import time from abc import abstractmethod, ABC -import pyautogui from playsound import playsound from fishy import web from fishy.helper import helper +import keyboard _fishCaught = 0 _totalFishCaught = 0 @@ -52,11 +52,12 @@ class HookEvent(FishEvent): _fish_times.append(time_to_hook) logging.info("HOOOOOOOOOOOOOOOOOOOOOOOK....... " + str(_fishCaught) + " caught " + "in " + str( round(time_to_hook, 2)) + " secs. " + "Total: " + str(_totalFishCaught)) - pyautogui.press(self.action_key) + # pyautogui.press(self.action_key) + keyboard.press_and_release(self.action_key) if self.collect_r: time.sleep(0.1) - pyautogui.press('r') + keyboard.press_and_release('r') time.sleep(0.1) def on_exit_callback(self, current_mode): @@ -76,7 +77,7 @@ class LookEvent(FishEvent): presses e to throw the fishing rod :param previous_mode: previous mode in the state machine """ - pyautogui.press(self.action_key) + keyboard.press_and_release(self.action_key) def on_exit_callback(self, current_mode): pass diff --git a/requirements.txt b/requirements.txt index cdcf764..6556295 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,11 +6,10 @@ opencv_python Pillow pypiwin32 ttkthemes -pyautogui requests beautifulsoup4 whatsmyip pynput pytesseract keyboard -playsound \ No newline at end of file +playsound \ No newline at end of file