Browse Source

Update Download_Sophia.ps1

master
Dmitry Nefedov 9 months ago
committed by GitHub
parent
commit
2ff79a85db
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      Download_Sophia.ps1

11
Download_Sophia.ps1

@ -204,7 +204,16 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
}
if (-not ("WinAPI.ForegroundWindow" -as [type]))
{
Add-Type @SetForegroundWindow
try
{
Add-Type @Signature
}
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message "PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase."
exit
}
}
Start-Sleep -Seconds 1

Loading…
Cancel
Save