I am kinda confused on why this doesnt run, it goes to the location but doesnt click it or it didnt register the click, i will be grateful for anykind of help im still a beginner on coding
(` def click_target(self, x, y, target_size):
# Adjust the position based on the window offset
target_w, target_h = target_size
click_x = x + self.wCap.offset_x + target_w // 2
click_y = y + self.wCap.offset_y + target_h // 2
# Perform the click
pyautoit.mouse_move(click_x, click_y, speed=1)
sleep(0.5)
pyautoit.mouse_click('left', speed=1, clicks=3)
`)