LEVEL 4 · SYSTEMS

Desktop Control Backend

An auditable coordinate-and-frame action runner with reproducible before/after pixel artifacts. The Backend trait is the reusable boundary. TSV uses capture, click<TAB>x<TAB>y<TAB>generation and type<TAB>text; the runner refuses unknown actions and caps32 calls.

4 stages~8 hoursRustcore
Validate frames and coordinate spacesRender and manipulate a fixture sceneReject stale observations and exhausted budgetsBuild an opt-in native boundary
YOU END UP WITH

An auditable coordinate-and-frame action runner with reproducible before/after pixel artifacts.

USEFUL FOR
  • The Backend trait is the reusable boundary. TSV uses capture, click<TAB>x<TAB>y<TAB>generation and type<TAB>text; the runner refuses unknown actions and caps32 calls.
LEARN FIRST
  • Rust 2021 toolchain
  • structs, traits, generics, Result, mutable borrowing and byte vectors. Python 3 runs the grader and demo wrapper.
PROJECT OUTLINE

Desktop Control Backend in 4 stages

An auditable coordinate-and-frame action runner with reproducible before/after pixel artifacts.

  1. Validate frames and coordinate spaces

    A screenshot has physical pixel dimensions while native desktop clicks may use logical coordinates.

    starter · ~2 hours · Rust

    Frame.validateFrame.logical_point
  2. Render and manipulate a fixture scene

    Define capture, click and type_text behind one Backend trait.

    core · ~2 hours · Rust

    BackendFixtureBackend
  3. Reject stale observations and exhausted budgets

    Place a Controller around the backend.

    core · ~2 hours · Rust

    Controller.captureController.clickController.type_text
  4. Build an opt-in native boundary

    Construct macOS screencapture and AppleScript argument arrays without a shell.

    core · ~2 hours · Rust

    click_argvtext_argvpng_dimensionsMacBackend

All projects · Course catalog · Source on GitHub