Skip to content

Instantly share code, notes, and snippets.

@nomeyer
Last active September 4, 2021 18:05
Show Gist options
  • Save nomeyer/c90d884c3a9c48060e8d to your computer and use it in GitHub Desktop.
Save nomeyer/c90d884c3a9c48060e8d to your computer and use it in GitHub Desktop.
Create an app reference from a PID (accessibility)
#include <CoreFoundation/CoreFoundation.h>
AXUIElementRef app = AXUIElementCreateApplication(pid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment