Skip to content

Instantly share code, notes, and snippets.

@sfreek76
Created August 10, 2022 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfreek76/fe500add76dda45c68cdbe2a9a0f0840 to your computer and use it in GitHub Desktop.
Save sfreek76/fe500add76dda45c68cdbe2a9a0f0840 to your computer and use it in GitHub Desktop.
tell application "System Events"
click at {100, 200}
delay 1
keystroke "mypassword"
delay 1
keystroke return
end tell
@sfreek76
Copy link
Author

Hello

I would like to unlock mac OS Montereys lock screen with the script above.

It works so far but it won't fill my password in, it only strokes the return key. Unfortunately I'm no programmer so I would appreciate any help on this...

Many thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment