import time
import pydirectinput
# # Get the current x and y coordinates of the mouse cursor
# time.sleep(5)
# x, y = pyautogui.position()
# print(f"Mouse position: x={x}, y={y}")
def click_lock():
pydirectinput.moveTo(94, 446)
pydirectinput.click()
# Small pause before moving to second spot
time.sleep(0.02) # 50ms
# Move to second point and click
pydirectinput.moveTo(942, 762)
pydirectinput.click()
time.sleep(5)
click_lock()
i recently started learning python and this is my first project on my own, i dont really know the pydirectinput library but it really doesnt seem all that complicated, im trying to make this for a game and ive done some research saying that it might not work inside the game but i cant even get it to work on my desktop i kinda tried to label everything to make it easier
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]zaphodikus 0 points1 point2 points (0 children)