{"id":30909821,"url":"https://github.com/richi-die1/mac-autocklicker","last_synced_at":"2025-09-09T16:04:01.693Z","repository":{"id":310709346,"uuid":"1040930125","full_name":"Richi-die1/mac-autocklicker","owner":"Richi-die1","description":"A modern Mac-Autoclicker.","archived":false,"fork":false,"pushed_at":"2025-08-19T18:26:51.000Z","size":710,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T20:28:52.759Z","etag":null,"topics":["app","autoclicker","clicker","cps","mac","macos","macos-app","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Richi-die1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-19T18:07:34.000Z","updated_at":"2025-08-19T19:10:36.000Z","dependencies_parsed_at":"2025-08-19T20:40:38.017Z","dependency_job_id":null,"html_url":"https://github.com/Richi-die1/mac-autocklicker","commit_stats":null,"previous_names":["richi-die1/mac-autocklicker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Richi-die1/mac-autocklicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richi-die1%2Fmac-autocklicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richi-die1%2Fmac-autocklicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richi-die1%2Fmac-autocklicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richi-die1%2Fmac-autocklicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Richi-die1","download_url":"https://codeload.github.com/Richi-die1/mac-autocklicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richi-die1%2Fmac-autocklicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274323109,"owners_count":25264066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app","autoclicker","clicker","cps","mac","macos","macos-app","python"],"created_at":"2025-09-09T16:03:54.807Z","updated_at":"2025-09-09T16:04:01.656Z","avatar_url":"https://github.com/Richi-die1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖱️ Mac Autoclicker – PyQt6 \u0026 Quartz\n\nA feature-rich, macOS‑specific auto‑clicker with a modern PyQt6 interface.  \nProvides precise automated clicking (single or double) with configurable interval, mouse button, click count, and random time jitter.\n\n---\n\n## ✨ Features\n\n- **Cross‑thread architecture**: Clicking logic runs in a separate `QThread` – UI remains responsive.\n- **Precise control**:\n  - Interval from **1 ms to 1 h**\n  - **Single** or **Double** clicks\n  - **Left / Right / Middle mouse button**\n  - **Fixed click count** or **infinite**\n- **Random jitter (ms)** for more natural click simulation\n- **3‑second countdown** before starting to prevent accidental activation\n- **Save settings** (JSON in user's Library folder)\n- **Modern UI look** with Qt Fusion theme\n- **macOS only**: uses AppKit \u0026 Quartz APIs for native event generation\n\n---\n\n## 📦 Requirements\n\n- **macOS** (must grant Accessibility access)\n- **Python 3.9+** (recommended, only for the \"build yourself\" option)\n- Dependencies (for manual run):\n  ```bash\n  pip install PyQt6 pyobjc\n  ```\n- **Enable Accessibility**:  \n  `System Settings` → `Privacy \u0026 Security` → `Accessibility` → add the app and allow.\n\n---\n\n## 🚀 Installation \u0026 Usage\n\n### 1. Download ready‑to‑use `.app`\n- Go to the **[Releases](../../releases)** section on GitHub.\n- Download the latest `.app` file.\n- Move it to your Applications folder.\n- On first launch, you may need to allow execution in `System Settings` → `Privacy \u0026 Security`.\n\n### 2. Build yourself (for developers)\n```bash\n# Clone the repo\ngit clone https://github.com/YOURUSERNAME/mac-autoclicker.git\ncd mac-autoclicker\n\n# Create \u0026 activate a virtual environment\npython3 -m venv .venv\nsource .venv/bin/activate\n\n# Install PyInstaller\npip install pyinstaller\n\n# Build the app\npyinstaller --windowed --onefile --name \"Mac Autoclicker\" autoclicker.py\n```\n\n\u003e ⚠️ **Known Bug:** When building, the resulting `.app` currently shows the default Python 2 icon instead of the custom icon.  \n\u003e Functionality is unaffected – it's purely cosmetic.  \n\u003e **Workaround:** Manually replace the `.icns` file inside the `.app` bundle until the bug is fixed.\n\n---\n\n## 🖥️ How to Use\n\n1. **Set the interval** – seconds between clicks (e.g., `0.05` for 20 CPS).\n2. **Jitter (ms)** – random variation applied to the interval per click.\n3. **CPS label** – shows clicks per second based on the interval.\n4. **Select mouse button** and **click type**.\n5. **Set click count** – `-1` = infinite, or any fixed number.\n6. **Start** – press the button, countdown runs, then clicking starts.\n7. **Stop** – press the button to end clicking.\n\n\u003e 💡 Tip: The **\"Infinite\"** button sets click count to `-1` instantly.\n\n---\n\n## ⚙️ Technical Details\n\n### Architecture\n- **GUI**: `AutoClickerWindow` (PyQt6) – handles input, countdown, starting/stopping the thread, and settings persistence.\n- **Worker thread**: `ClickerThread` – generates macOS native MouseDown/MouseUp events via Quartz:\n  - `CGEventCreateMouseEvent`\n  - `CGEventPost` (`kCGHIDEventTap`)\n- **Timing**: `time.perf_counter()` for precise scheduling and drift prevention.\n- **Persistence**: JSON file stored at:\n  ```\n  ~/Library/Application Support/MacAutoclicker/settings.json\n  ```\n\n### Event Mapping\n| GUI Option | Quartz Events                  |\n|------------|---------------------------------|\n| Left       | `kCGEventLeftMouseDown` / `Up`  |\n| Right      | `kCGEventRightMouseDown` / `Up` |\n| Middle     | `kCGEventOtherMouseDown` / `Up` |\n\n---\n\n## 📂 Project Structure\n\n```\nmac-autoclicker/\n├── autoclicker.py          # Main application (GUI + thread)\n├── requirements.txt        # Python dependencies\n├── setup.py                # Optional build script\n├── README.md               # This file\n└── icons/                  # Custom icon (.icns)\n```\n\n---\n\n## 🔒 Security \u0026 Permissions\n\n- **macOS only**: No compatible APIs for other OS.\n- **Accessibility**: Without permission, macOS will block event injection.\n- **Usage**: Use responsibly – auto‑clickers may be detected as bot behaviour.\n\n---\n\n## 🛠️ Planned Improvements\n\n- [ ] Fix: Ensure custom icon appears in built `.app`\n- [ ] Configurable double‑click gap\n- [ ] Support for coordinate‑based clicking\n- [ ] Improved power efficiency for long intervals\n\n---\n\n## 🤝 Contributing \u0026 License\n\nContributions, bug reports, and pull requests are welcome!  \nPlease open an issue before submitting a PR.\n\n**License:** MIT (see [LICENSE](LICENSE))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichi-die1%2Fmac-autocklicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichi-die1%2Fmac-autocklicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichi-die1%2Fmac-autocklicker/lists"}