Skip to content

fix(macljqCtrl): add CropToScreen helper + crop-origin coord hints#614

Open
wjl2023 wants to merge 1 commit into
lsdefine:mainfrom
wjl2023:fix/macos-crop-coord-helper
Open

fix(macljqCtrl): add CropToScreen helper + crop-origin coord hints#614
wjl2023 wants to merge 1 commit into
lsdefine:mainfrom
wjl2023:fix/macos-crop-coord-helper

Conversation

@wjl2023

@wjl2023 wjl2023 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

On macOS the screenshot path lacked a counterpart to win32's ClientToScreen. Detecting a target inside a cropped GrabScreen(bbox) image and feeding the in-image (px,py) straight to Click silently mis-clicks because the crop-origin offset is dropped.

  • add CropToScreen(bbox, x, y): in-crop coords -> absolute physical coords (pure crop-origin add, no scaling)
  • GrabScreen docstring: warn about the crop-origin trap and not to hand-roll screencapture -R (it takes logical points)
  • Click 0%-pixel-change warning now names the common causes
  • ljqCtrl_sop.md: add macOS subsection mirroring the win32 trap note

On macOS the screenshot path lacked a counterpart to win32's
ClientToScreen. Detecting a target inside a cropped GrabScreen(bbox)
image and feeding the in-image (px,py) straight to Click silently
mis-clicks because the crop-origin offset is dropped.

- add CropToScreen(bbox, x, y): in-crop coords -> absolute physical
  coords (pure crop-origin add, no scaling)
- GrabScreen docstring: warn about the crop-origin trap and not to
  hand-roll screencapture -R (it takes logical points)
- Click 0%-pixel-change warning now names the common causes
- ljqCtrl_sop.md: add macOS subsection mirroring the win32 trap note
@wjl2023 wjl2023 force-pushed the fix/macos-crop-coord-helper branch from 7582e6c to d1e1618 Compare June 15, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant