How thnoed/damnclick works
DamnClick is a Windows game auto-clicker with configurable profiles and click binds. Users select a profile, configure and enable binds, then trigger Hold, Toggle, or Combo behavior with global keyboard or mouse input; the runner injects timed clicks into the foreground application. The app also supports profile import/export, settings, status display, localization, and toggle sounds. Relationships below follow the excerpts, SOURCE INDEX references, and README; unsampled UI and settings details are represented at their enclosing source path.
Main entry points: MainWindow.xaml.cs Main window · BlockRunner.cs Click runner · BlockCard.xaml.cs Bind editor · GlobalHook.cs Global input hook
Components 15
App interface
- Main window
MainWindow.xaml.cs - Bind editor
BlockCard.xaml.cs - Localization
Core/I18n.cs
Click runtime
- Click runner
Core/BlockRunner.cs - Global input hook
Core/GlobalHook.cs - Key state
Core/KeyState.cs - Key encoding
Core/KeyCodes.cs - Input and timing API
Core/Win32.cs - Toggle sounds
Core/SoundBank.cs
Profiles and settings
- Profile models
Core/Models.cs - Profile storage
Core/ProfileStore.cs
Other components
- User
- Windows input APIs
- Game or foreground app
- profiles.dat
Connections 19
- User → Main window: configures
README.md - Main window → Profile storage: loads and saves
MainWindow.xaml.cs - Profile storage → profiles.dat: reads and writes
README.md - Profile storage → Profile models: serializes
Core/ProfileStore.cs - Main window → Bind editor: creates
MainWindow.xaml.cs - Bind editor → Click runner: refreshes
BlockCard.xaml.cs - Bind editor → Localization: gets labels
BlockCard.xaml.cs - Main window → Localization: gets labels
MainWindow.xaml.cs - Main window → Click runner: creates
MainWindow.xaml.cs - Main window → Global input hook: starts
MainWindow.xaml.cs - Global input hook → Click runner: sends key events
Core/BlockRunner.cs - Global input hook → Key encoding: encodes input
Core/GlobalHook.cs - Click runner → Key state: checks held key
Core/BlockRunner.cs - Key state → Key encoding: converts key
Core/KeyState.cs - Key state → Input and timing API: checks physical state
Core/KeyState.cs - Click runner → Input and timing API: injects timed clicks
Core/BlockRunner.cs - Input and timing API → Windows input APIs: calls input APIs
Core/Win32.cs - Windows input APIs → Game or foreground app: delivers clicks
- Main window → Toggle sounds: uses toggle sounds
MainWindow.xaml.cs