# zexzeed93/image-recognition-auto-clicker architecture

> Architecture diagram of the GitHub repository zexzeed93/image-recognition-auto-clicker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zexzeed93/image-recognition-auto-clicker
- Repository: https://github.com/zexzeed93/image-recognition-auto-clicker

## Overview

This is a Windows desktop image-recognition auto-clicker. The workflow is profile selection and configuration, target-image capture/import, global-hotkey activation, periodic screen capture and template matching, then mouse or key action when the match threshold is met. Profile settings and target images are stored per profile; start and match sounds provide feedback. The excerpts show startup, profile management, recognition, and sound calls, but not the XAML event wiring or all profile-editor behavior, so those relationships are omitted.

Main entry points: [`MasterWindow.xaml.cs`](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MasterWindow.xaml.cs) (Profile dashboard), [`Profile.cs`](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs) (Profile management), [`MainWindow.Runtime.cs`](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs) (Scan coordinator), [`SoundEffects.cs`](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/SoundEffects.cs) (Sound playback)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Application control"]
  node_app["Application startup<br/>[App.xaml.cs]"]
  node_master["Profile dashboard"]
  node_master_ui["Dashboard UI<br/>[MasterWindow.xaml]"]
end

subgraph group_profiles["Profiles and setup"]
  node_profile_editor["Profile editor<br/>[MainWindow.xaml.cs]"]
  node_editor_ui["Editor UI<br/>[MainWindow.xaml]"]
  node_profile_manager["Profile management<br/>[Profile.cs]"]
  node_profile_settings[("Settings and profile files<br/>[Profile.cs]")]
  node_target_images[("Target images<br/>[Profile.cs]")]
end

subgraph group_runtime["Recognition runtime"]
  node_runtime_windows["Runtime profile windows"]
  node_coordinator["Scan coordinator"]
  node_screen_capture["Screen capture<br/>[MainWindow.xaml.cs]"]
  node_matcher["Template matching"]
end

subgraph group_feedback["Actions and feedback"]
  node_automation["Mouse and key input"]
  node_sound_effects["Sound playback<br/>[SoundEffects.cs]"]
  node_sound_assets["Sound assets"]
end

node_user(("User"))
node_windows_input["Windows input APIs"]

node_app -->|"creates and shows"| node_master
node_master -->|"loads and manages"| node_profile_manager
node_master -->|"creates runtime windows"| node_runtime_windows
node_master -->|"starts and disposes"| node_coordinator
node_master -->|"plays start sound"| node_sound_effects
node_profile_editor -->|"loads and saves"| node_profile_manager
node_profile_editor -->|"copies and updates"| node_target_images
node_profile_manager -->|"reads and writes"| node_profile_settings
node_profile_manager -->|"manages image files"| node_target_images
node_coordinator -->|"schedules scans"| node_runtime_windows
node_coordinator -->|"captures screen"| node_screen_capture
node_coordinator -->|"dispatches frames"| node_matcher
node_matcher -->|"invokes on match"| node_automation
node_automation -->|"sends mouse and keys"| node_windows_input
node_runtime_windows -->|"loads settings"| node_profile_manager
node_runtime_windows -->|"plays recognition sound"| node_sound_effects
node_sound_effects -->|"finds and plays"| node_sound_assets
node_user -.-> node_master_ui
node_user -.-> node_editor_ui

click node_app "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/App.xaml.cs"
click node_master "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MasterWindow.xaml.cs"
click node_master_ui "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MasterWindow.xaml"
click node_profile_editor "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml.cs"
click node_editor_ui "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml"
click node_profile_manager "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs"
click node_profile_settings "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs"
click node_target_images "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs"
click node_runtime_windows "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs"
click node_coordinator "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs"
click node_screen_capture "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml.cs"
click node_matcher "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs"
click node_automation "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs"
click node_sound_effects "https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/SoundEffects.cs"
click node_sound_assets "https://github.com/zexzeed93/image-recognition-auto-clicker/tree/main/assets/sounds"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_master,node_master_ui,node_user toneBlue
class node_profile_editor,node_editor_ui,node_profile_manager,node_profile_settings,node_target_images toneAmber
class node_runtime_windows,node_coordinator,node_screen_capture,node_matcher,node_windows_input toneMint
class node_automation,node_sound_effects,node_sound_assets toneRose
```

## Components

### Application control

- [Application startup](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/App.xaml.cs): `App.xaml.cs`
- [Profile dashboard](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MasterWindow.xaml.cs): `MasterWindow.xaml.cs`
- [Dashboard UI](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MasterWindow.xaml): `MasterWindow.xaml`

### Profiles and setup

- [Profile editor](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Editor UI](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml): `MainWindow.xaml`
- [Profile management](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs): `Profile.cs`
- [Settings and profile files](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs): `Profile.cs`
- [Target images](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/Profile.cs): `Profile.cs`

### Recognition runtime

- [Runtime profile windows](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs): `MainWindow.Runtime.cs`
- [Scan coordinator](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs): `MainWindow.Runtime.cs`
- [Screen capture](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Template matching](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs): `MainWindow.Runtime.cs`

### Actions and feedback

- [Mouse and key input](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/MainWindow.Runtime.cs): `MainWindow.Runtime.cs`
- [Sound playback](https://github.com/zexzeed93/image-recognition-auto-clicker/blob/main/SoundEffects.cs): `SoundEffects.cs`
- [Sound assets](https://github.com/zexzeed93/image-recognition-auto-clicker/tree/main/assets/sounds): `assets/sounds`

### Other components

- **User**
- **Windows input APIs**

## Connections

- Application startup → Profile dashboard: creates and shows (evidence: `App.xaml.cs`)
- Profile dashboard → Profile management: loads and manages (evidence: `MasterWindow.xaml.cs`)
- Profile dashboard → Runtime profile windows: creates runtime windows (evidence: `MasterWindow.xaml.cs`)
- Profile dashboard → Scan coordinator: starts and disposes (evidence: `MasterWindow.xaml.cs`)
- Profile dashboard → Sound playback: plays start sound (evidence: `MasterWindow.xaml.cs`)
- Profile editor → Profile management: loads and saves (evidence: `MainWindow.xaml.cs`)
- Profile editor → Target images: copies and updates (evidence: `MainWindow.xaml.cs`)
- Profile management → Settings and profile files: reads and writes (evidence: `Profile.cs`)
- Profile management → Target images: manages image files (evidence: `Profile.cs`)
- Scan coordinator → Runtime profile windows: schedules scans (evidence: `MainWindow.Runtime.cs`)
- Scan coordinator → Screen capture: captures screen (evidence: `MainWindow.Runtime.cs`)
- Scan coordinator → Template matching: dispatches frames (evidence: `MainWindow.Runtime.cs`)
- Template matching → Mouse and key input: invokes on match (evidence: `MainWindow.Runtime.cs`)
- Mouse and key input → Windows input APIs: sends mouse and keys (evidence: `MainWindow.Runtime.cs`)
- Runtime profile windows → Profile management: loads settings
- Runtime profile windows → Sound playback: plays recognition sound (evidence: `MainWindow.Runtime.cs`)
- Sound playback → Sound assets: finds and plays (evidence: `SoundEffects.cs`)
- User → Dashboard UI
- User → Editor UI
