diff --git a/click.py b/click.py index e3dbda4..76aae2d 100644 --- a/click.py +++ b/click.py @@ -1,9 +1,11 @@ import sys +import pydirectinput import pyautogui - x = int(sys.argv[1]) y = int(sys.argv[2]) print("\n" + str(x) + str(y) + "\n") -pyautogui.click(x,y) \ No newline at end of file +pyautogui.moveTo(x,y, .3) +pydirectinput.moveTo(x,y, .3) +pyautogui.click(clicks=2, interval=.35) \ No newline at end of file diff --git a/config.jsonc b/config.jsonc index e3fd30f..59647d5 100644 --- a/config.jsonc +++ b/config.jsonc @@ -1,10 +1,10 @@ { "photoInterval": 2, "targetColor": { - "r": 194, - "g": 176, - "b": 122, + "r": 85, + "g": 73, + "b": 49, "a": 255 }, - "tolerance": 3 + "tolerance": 2 } \ No newline at end of file diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..672deea --- /dev/null +++ b/setup.bat @@ -0,0 +1,4 @@ +python -m ensurepip +pip install pyautogui +pip install PyDirectInput +npm i \ No newline at end of file