Untitled

mail@pastecode.io avatar
unknown
python
a month ago
331 B
1
Indexable
Never
    def move(self, target_x, target_y):
        current_time = time.time()
        if self.last_known_position is None or (current_time - self.last_update_time > 0.05):
            pyautogui.moveTo(target_x, target_y)
            self.last_known_position = (target_x, target_y)
            self.last_update_time = current_time
Leave a Comment