This commit is contained in:
编码猿
2025-08-29 22:01:46 +08:00
parent 463c1d1137
commit f41bf06b0c
797 changed files with 3 additions and 277190 deletions

View File

@@ -97,7 +97,7 @@ class Application:
if compare_res['confidence'] > 50.0:
print("锁屏状态下,是管理员,所以需要进行解锁....")
Config.is_locked = False
# sudo("say '欢迎,正在自动解锁中!'")
sudo("say '欢迎,正在自动解锁中!'")
unlock()
else:
sudo("say '不是管理员,无法解锁!'")

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -48,7 +48,7 @@ def unlock():
success()
# 唤醒屏幕进入锁屏界面
def unlock_screen():
def unlock_screen():
code = '''tell application "System Events" to keystroke "a" using command down'''
return AppleScript.exec(code)