Compare commits

..

No commits in common. "36cfeffe9c0c11f08251c84a9e053335efda1b95" and "e5b3ea8b579ee4833217a487c453dab4b1e1b122" have entirely different histories.

View File

@ -45,11 +45,10 @@ def perform_ocr(screenshot: bytes) -> list[dict]:
for i in range(n):
text = data['text'][i]
if text and text.strip():
# Fix the center-point calculation (add first, then divide)
results.append({
'text': text,
'x': data['left'][i] + data['width'][i] // 2,
'y': data['top'][i] + data['height'][i] // 2
'x': data['width'][i] + data['left'][i] // 2, # center x position
'y': data['height'][i] + data['top'][i] // 2 # center y position
})
# check if debug is enabled
@ -110,7 +109,7 @@ def wait(duration: float) -> None:
def search_pc(query: str) -> None:
"""Presses the Windows key."""
pyautogui.hotkey('win')
wait(4)
wait(2)
press_keyboard(KeyboardInput(text=query))
def reprompt(nextsteps: str, processor) -> None: