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