12 lines
472 B
PowerShell
12 lines
472 B
PowerShell
$textToSend = "For Example, you could do something like this..."
|
|
$brokenText = $textToSend.Split(" ")
|
|
|
|
Add-Type -AssemblyName PresentationCore,PresentationFramework
|
|
$ButtonType = [System.Windows.MessageBoxButton]::YesNo
|
|
$MessageIcon = [System.Windows.MessageBoxImage]::Error
|
|
|
|
foreach ($text in $brokenText) {
|
|
$MessageBody = $text
|
|
$MessageTitle = "Annoying Text Box"
|
|
$Result = [System.Windows.MessageBox]::Show($MessageBody,$MessageTitle,$ButtonType,$MessageIcon)
|
|
} |