Back to Selected Works
App

Matik - Activity Keeper

A Windows desktop app built with Electron + React + TypeScript that simulates user activity (subtle mouse movements & Alt-Tabs) to prevent tracker inactivity auto-pause.

ElectronReact 18TypeScriptViteelectron-viteelectron-storeC# (.NET Framework)Win32 User32 APILucide ReactNode.jselectron-builderNSISHTML5Vanilla CSS3
Matik - Activity Keeper

The Problem

Workplace activity and screenshot monitoring software (e.g., ScreenshotMonitor, Hubstaff, Time Doctor) automatically track user inactivity. If no keyboard or mouse activity is detected within a set threshold (typically 3 to 5 minutes), the monitoring software automatically pauses the work timer, stops recording billable hours, or flags the session. Simple auto-clickers or third-party jiggler utilities are easily detected and flagged by anti-cheat process scanners because of fixed mathematical patterns, static periodic intervals, abrupt cursor teleports, and obvious process names (e.g., AutoMouse.exe, MouseJiggler.exe).

The Solution

Matik is a stealthy, human-like activity simulation application for Windows built with Electron, React, and TypeScript. It automatically keeps work timers active by generating organic Bezier-curve mouse movements and realistic Alt-Tab window switches during idle periods. Matik continuously monitors system-wide input at the OS level (powerMonitor), instantly pausing and resetting all cycle counters the moment physical user input is detected. Designed to bypass cheat-detection heuristics, Matik incorporates randomized interval jitter (±15%), natural hand-movement micro-delays, process masking (SystemHost.exe & winhost32.exe), and an optional fail-safe warning alarm.

Key Features & Capabilities

Customizable Tracker Thresholds (1-15 mins)
1-Second Granular Idle Activation Delay
Smooth Bezier Mouse Nudges with Return-to-Origin
Natural Alt-Tab Window Switching
Randomized Interval Jitter (±15%)
Smart OS-Level Idle Detection via powerMonitor
Fail-Safe Audio Warning & Desktop Notifications
One-Click Profile Presets (Standard 5m / Quick 3m / Subtle Stealth)
Manual Test Triggers for Mouse and Alt-Tab
System Tray Minimization & Context Menu
Standalone NSIS Installer & Portable Executable

System Architecture & Flow

Frontend / Renderer Process: Built with React 18, TypeScript, Vite, and Vanilla CSS. Renders the user interface, status badges, circular countdown progress bars, slider controls, and preset managers. Communicates strictly through a secure, context-isolated preload.ts IPC bridge. Main Process (Backend): Manages BrowserWindow lifecycles, System Tray menu integration, app state, and persistent settings stored via electron-store. Runs a 1-second heartbeat loop querying powerMonitor.getSystemIdleTime(). Applies ±15% randomized time-jitter to scheduled actions and calculates cycle elapsed timers. Native Helper Engine (winhost32.exe): A lightweight (<15KB) C# binary compiled via Windows csc.exe. Executes low-level User32 Win32 API calls (SetCursorPos, keybd_event, GetCursorPos) with micro-variances (8–16ms delays) for mouse nudges, Alt-Tab window switching, and audio warning chimes in under 10 milliseconds.

In-Depth Overview

Matik — Activity Keeper is a modern Windows desktop application engineered to prevent unintentional time-tracker auto-pauses without disrupting real user workflow. Built using Electron, React 18, and TypeScript, Matik delivers a dark glassmorphic dashboard featuring real-time countdown timers, live idle status metrics, and configurable presets (Standard 5m, Quick 3m Tracker, and Subtle Stealth).

Unlike legacy auto-clickers, Matik runs a fast native Win32 input engine (winhost32.exe) compiled directly via the Windows C# compiler. It calculates cubic Bezier curves with randomized micro-delays (8ms–16ms per step) to replicate fluid human hand motion, complete with an optional return-to-origin feature to prevent cursor drift. Matik’s intelligent cycle engine evaluates user inactivity against a customizable tracker threshold (e.g., 5 minutes) and idle delay (down to 1 second). To ensure zero interference, physical mouse or keyboard input immediately resets all internal timers. For security against process scanners, Matik operates under neutral binary and window handles (SystemHost.exe, System Settings Host) and applies organic time-jitter across all scheduled actions.