Update SRS.lua

#MSRS Test to get the pwsh window to minimize
This commit is contained in:
Thomas 2024-11-04 14:49:26 +01:00 committed by GitHub
parent b72124c0d9
commit 60a3d3409e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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