swift-auto-gui

Category: Tools & Productivity | Uploader: NakaokaReiNakaokaRei | Downloads: 0 | Version: v1.0(Latest)

Control macOS GUI applications via mouse automation, keyboard input, screenshots, image recognition, and AppleScript execution. Use when you need to interact with macOS app UIs, take screenshots, click buttons, type text, scroll, drag, or locate images on screen. --- # swift-auto-gui The `sagui` CLI provides mouse control, keyboard input, screenshot capture, image recognition, and screen queries for macOS automation. ## Prerequisites - **Accessibility**: Required for mouse and keyboard commands. Enable in System Settings > Privacy & Security > Accessibility. - **Screen Recording**: Required for screenshot and image recognition commands. Enable in System Settings > Privacy & Security > Screen Recording. ## Coordinates All coordinates use **CGWindow coordinate system** — logical points with origin at the **top-left of the primary display**. - x increases to the right - y increases downward - Values are in logical points (not pixels) Use `sagui screen size` to get screen dimensions. ## Commands ### key — Simulate keyboard input ```bash sagui key shortcut command c # Keyboard shortcut (Cmd+C) sagui key shortcut command shift a # Multi-modifier shortcut sagui key down shift # Press key without releasing sagui key up shift # Release a held key sagui key type "Hello, World!" # Type text character by character sagui key type "slow" --interval 0.1 # Type with delay between keystrokes ``` | Subcommand | Arguments | Optional | |---|---|---| | `shortcut` | `<keys...>` (key names) | | | `down` | `<key>` | | | `up` | `<key>` | | | `type` | `<text>` | `--interval <seconds>` (default: 0) | #### Supported key names **Modifiers**: `command`, `shift`, `rightShift`, `control`, `rightControl`, `option`, `rightOption`, `capsLock`, `function` **Letters**: `a`-`z` **Numbers**: `zero`-`nine` **Function keys**: `f1`-`f20` **Arrow keys**: `upArrow`, `downArrow`, `leftArrow`, `rightArrow` **Navigation**: `home`, `end`, `

Changelog: Source: GitHub https://github.com/NakaokaRei/SwiftAutoGUI

Directory Structure

Current level: tree/master/.claude/skills/swift-auto-gui/

SKILL.md

Login to download/like/favorite ❤ 81 | ★ 0
Comments 0

Please login before commenting.

No comments yet. Be the first one!