Compare commits

...

2 Commits

Author SHA1 Message Date
编码猿
f41bf06b0c ww 2025-08-29 22:01:46 +08:00
编码猿
463c1d1137 sss 2025-08-29 22:01:42 +08:00
17 changed files with 3 additions and 2 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)

View File

@@ -2,6 +2,7 @@ requests
rumps
numpy
PyInstaller
PySide2
py2app
pyobjc-framework-Quartz
opencv-python