From 1d754db4e489e9edff77b83f91f86560b8c1f9d4 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 26 Dec 2023 13:55:56 -0600 Subject: [PATCH] Update for initial code --- .gitignore | 1 + unlock.as | 10 ++++++++++ unlock.php | 3 +++ unlock_action.php | 4 ++++ unlock_finished.php | 1 + 5 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 unlock.as create mode 100644 unlock.php create mode 100644 unlock_action.php create mode 100644 unlock_finished.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2ac45e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +password.txt diff --git a/unlock.as b/unlock.as new file mode 100644 index 0000000..16041d2 --- /dev/null +++ b/unlock.as @@ -0,0 +1,10 @@ +do shell script "caffeinate -u -t 3" +set theFile to POSIX file "./password.txt" +set theFile to theFile as alias +set theFileContents to paragraphs of (read file theFile) + +tell application "System Events" + keystroke (item 1 of theFileContents as string) + delay 1 + keystroke return +end tell diff --git a/unlock.php b/unlock.php new file mode 100644 index 0000000..d8c9b78 --- /dev/null +++ b/unlock.php @@ -0,0 +1,3 @@ + diff --git a/unlock_action.php b/unlock_action.php new file mode 100644 index 0000000..c85d9dd --- /dev/null +++ b/unlock_action.php @@ -0,0 +1,4 @@ + diff --git a/unlock_finished.php b/unlock_finished.php new file mode 100644 index 0000000..2b19040 --- /dev/null +++ b/unlock_finished.php @@ -0,0 +1 @@ +Thank you!