Skip to content

Commit

Permalink
Update Download_SophiApp.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 authored Feb 3, 2024
1 parent 3b211a7 commit dd7debf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Download_SophiApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
}
if (-not ("WinAPI.ForegroundWindow" -as [type]))
{
Add-Type @SetForegroundWindow
try
{
Add-Type @Signature
}
catch [System.Management.Automation.ParameterBindingException]
{
Write-Warning -Message "PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Ignore this error message. Open background folder manually."
}
}

Start-Sleep -Seconds 1
Expand Down

0 comments on commit dd7debf

Please sign in to comment.