Macos Input Injection

Post synthetic keyboard and mouse events on macOS reliably from an agent or automation tool. Covers CGEventPost tap locations (HID vs session) and which tools use which, why CGEventFlags modifiers are not always honoured downstream, the TCC permissions each API needs, the hs.task garbage-collection footgun that silently kills a spawned process, and the fact that macOS disables a slow event tap while hs.eventtap:isEnabled() keeps returning true. Use when injected keystrokes vanish, reach the wrong machine or app, or when an event tap mysteriously stops receiving events.

pooriaarab c99d201 4.2 KB Updated

File contents

pooriaarab/skills/tree/main/macos-input-injection commit c99d2011f9

Frequently asked questions

npx skillmds@latest add pooriaarab/macos-input-injection