fix: remove clicking prompting causing invalid clicks
This commit is contained in:
+2
-2
@@ -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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user