Untitled
unknown
python
a year ago
331 B
6
Indexable
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_timeEditor is loading...
Leave a Comment