mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +00:00
add a configurable delay before launching nvda
This commit is contained in:
parent
bf66a1d070
commit
4f48b0f01d
@ -1,12 +1,14 @@
|
|||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
|
import time
|
||||||
|
|
||||||
from .cdll import NVDA_PATH
|
from .cdll import NVDA_PATH
|
||||||
from .window import request_window_object as draw
|
from .window import request_window_object as draw
|
||||||
|
|
||||||
|
|
||||||
def launch():
|
def launch(delay=1):
|
||||||
if NVDA_PATH:
|
if NVDA_PATH:
|
||||||
sp.Popen([NVDA_PATH], shell=True)
|
sp.Popen([NVDA_PATH], shell=True)
|
||||||
|
time.sleep(delay)
|
||||||
|
|
||||||
|
|
||||||
__ALL__ = ["launch", "draw"]
|
__ALL__ = ["launch", "draw"]
|
||||||
|
Loading…
Reference in New Issue
Block a user