fix: remove clicking prompting causing invalid clicks

This commit is contained in:
Zoe
2026-09-20 22:53:48 -05:00
parent de1ae93ecc
commit 79e80fe361
4 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ def collect(width, height):
)
return json.loads(result.stdout)
except (subprocess.SubprocessError, ValueError) as error:
return {"targets": [], "warning": f"Accessibility unavailable ({type(error).__name__}); use pixel clicks."}
return {"targets": [], "warning": f"Accessibility unavailable ({type(error).__name__})."}
def resolve_target(saved, current, observation_id, target_id, width, height):
@@ -108,7 +108,7 @@ def scan(width, height):
continue
warning = "Accessibility target list truncated." if truncated else None
if not targets:
warning = "No actionable targets in an active accessible window; use pixel clicks."
warning = "No actionable targets in an active accessible window."
return {"targets": targets, "warning": warning}