Abstract
A screen-translation feature repeatedly captures a screen region, recognises its text and draws translations over or beside it. Its own windows, including those hosted by a separate helper UI process, must never appear in the captures. On macOS each capture takes the system's list of applications with on-screen windows, reused for up to 3 seconds, and excludes every entry whose process id belongs to the app or its helpers through a display-based content filter. That list contains only apps with an on-screen window, so an app missing from it re-reads the list once and then asks the window server whether it really has a window on screen. With none, there is nothing to exclude and the capture proceeds. With one still unlisted, exclusion cannot be established and the capture is refused rather than risk translating the overlay. Captures are cancelled when the frame moves, closes or changes language, run one native request at a time, and are fingerprinted so unchanged frames skip OCR. On Windows each overlay window is marked as excluded from capture and verified; an overlapping own window that is not excluded blocks the capture, and systems that would blacken the window are refused.
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 License.
Recommended Citation
Supersey, "Screen Capture for a Live Translation Overlay That Excludes the App's Own and Helper-Process Windows and Refuses to Capture When Exclusion Cannot Be Established", Technical Disclosure Commons, ()
https://www.tdcommons.org/dpubs_series/13053