From 313d12d0f9319fbf2621544d525d9d5a2ba0c2b2 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 30 Aug 2023 02:04:42 +0800 Subject: udpated --- main.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index 616288d..510e369 100644 --- a/main.py +++ b/main.py @@ -223,6 +223,27 @@ while True: except KeyboardInterrupt: continue continue + elif localcmd[1] == 'askdialog' or localcmd[1] == 'asklog' or localcmd == 'question': + if localcmd[2len(localcmd)]: if ossystem(f"osascript -e 'display notification \"{localcmd[2]}\" with title \"{localcmd[3]}\" subtitle \"{localcmd[4]}\"'") == 0: -- cgit v1.2.3