Updated interceptor-aps.py

Credits to SpyDrone: reverted the intervals between cover launch and minimizing from 0.1 seconds to 0.5 seconds to allow system to finish minimizing
This commit is contained in:
2026-01-28 08:09:28 -05:00
parent aa9895e049
commit 9a70a693eb

View File

@@ -16,7 +16,7 @@ p_path = "" # used only if program = 0.
# ---------- BRING TO FRONT ---------- #
def bring_to_front(window_title):
time.sleep(0.1)
time.sleep(0.5)
try:
print("Bringing to front...", end = " ")
windows = gw.getWindowsWithTitle(window_title)
@@ -52,7 +52,7 @@ def minimize():
# ---------- LAUNCH COVER PROGRAM ---------- #
def launch_cover(programs):
time.sleep(0.1)
time.sleep(0.5)
print("=" * 80)
print("Launching cover application...", end = " ")
if programs == "1": # Chrome
@@ -97,7 +97,7 @@ def launch_cover(programs):
# ---------- LAUNCH COVER PROGRAM PATH ---------- #
def launch_cover_path(path):
print("Launching custom path...", end = " ")
time.sleep(0.1)
time.sleep(0.5)
subprocess.run(
[path]
)