-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
36 lines (28 loc) · 1.13 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
import sys
import pyautogui
import time
import argparse
import textwrap
from rich.console import Console
from nolock import no_lock
from arg import run
console = Console()
progname = """\n
█▀█ █▀█ █▀▀ █░█ █▀▀ █▄░█ ▀█▀ █▀ █░░ █▀▀ █▀▀ █▀█ █░░ █▀█ █▀▀ █▄▀ █▀ █▀▀ █▀█ █▀▀ █▀▀ █▄░█
█▀▀ █▀▄ ██▄ ▀▄▀ ██▄ █░▀█ ░█░ ▄█ █▄▄ ██▄ ██▄ █▀▀ █▄▄ █▄█ █▄▄ █░█ ▄█ █▄▄ █▀▄ ██▄ ██▄ █░▀█
"""
def main(args):
try:
print(progname)
console.print(
"\nRunning with [bold cyan]{}[/bold cyan] key.".format(args.button)
)
no_lock(args.button)
except KeyboardInterrupt:
print("\n[Process Stopped]", flush=True)
except Exception as ex:
print({"main": ex})
if __name__ == "__main__":
args = run()
main(args)