diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index a73c494d..cb2b1287 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -207,7 +207,6 @@ if (-not ("WinAPI.ForegroundWindow" -as [type])) Add-Type @SetForegroundWindow } -# The function doesn't work in Windows 11 any more Get-Process -Name explorer | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows $([System.Environment]::OSVersion.Version.Major)"} | ForEach-Object -Process { # Show window, if minimized [WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 5)