From 60a3d3409e63fc6e6d1273181fbe223615045031 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:49:26 +0100 Subject: [PATCH] Update SRS.lua #MSRS Test to get the pwsh window to minimize --- Moose Development/Moose/Sound/SRS.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Sound/SRS.lua b/Moose Development/Moose/Sound/SRS.lua index ff6c95c9e..261489e7b 100644 --- a/Moose Development/Moose/Sound/SRS.lua +++ b/Moose Development/Moose/Sound/SRS.lua @@ -1490,7 +1490,7 @@ function MSRS:_ExecCommand(command) elseif self.UsePowerShell == true then - local pwsh = string.format('powershell.exe -ExecutionPolicy Unrestricted -WindowStyle Hidden -Command "%s"',filename) + local pwsh = string.format('start /min "" powershell.exe -ExecutionPolicy Unrestricted -WindowStyle Hidden -Command "%s"',filename) --env.info("[MSRS] TextToSpeech Command :\n" .. pwsh.."\n") if string.len(pwsh) > 255 then