Skip to content

Record a sequence by clicking through it once #86

Closed

Description

@TMHSDigital

Why it matters

Building a sequence today means pressing Add point and picking each spot one at a time, then typing waits by hand. The fastest way to describe a routine is to just do it once. A record mode turns the new sequence engine (#72) into something people can set up in seconds, and it's the feature that most often makes users pick one macro tool over another.

Rationale

  • Sequences already store point, button, click type and the wait before the next step, which is exactly what a recording produces.
  • Recording needs a low-level mouse hook (WH_MOUSE_LL): an overlay like the picker's would swallow the clicks, but while recording they must still reach the target. Install the hook only while recording and remove it right after, which keeps the "no system-wide hook during normal use" promise from Replace unmaintained keyboard/mouse hook libraries with RegisterHotKey + Tk picker #57.

Suggested approach

  1. "Record" button in the sequence panel; a 3-second countdown, then each real click is captured as a step (position, button, double-click detection) with the measured gap as its wait.
  2. Stop recording with the Stop hotkey or a click on the tray icon; the hook is uninstalled in a finally.
  3. Options: round waits to the nearest 50 ms, cap long gaps.
  4. Clear status while recording ("Recording: 4 steps, press F7 to finish").
  5. README note on what is captured (clicks only, no keystrokes) and that nothing leaves the machine.

Done when

  • A user can record a five-click routine and replay it as a sequence; the hook exists only during recording, verified by a test of install/uninstall on every exit path.

Activity

  1. added
    enhancement
    priority: medium
    feature
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfeaturepriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions