Can you make me a simple powershell script which will create a popup box in red, with…
- User
Can you make me a simple powershell script which will create a popup box in red, with blue text saying hello
- Assistant
Certainly! Here's a simple PowerShell script that creates a popup box with a red background and blue text saying "Hello":
Add-Type -AssemblyName System.Windows.Forms $form = New-Object System.Windows.Forms.Form $form.Text = "Popup" $form.BackColor = "Red" $form.Width = 300 $form.Height = 200 $label = New-Object System.Windows.Forms.Label $label.Text = "Hello" $label.ForeColor = "Blue" $label.Font = New-Object System.Drawing.Font("Arial", 24, [System.Drawing.FontStyle]::Bold) $label.AutoSize = $true $label.Location = New-Object System.Drawing.Point(($form.Width - $label.Width) / 2, ($form.Height - $label.Height) / 2) $form.Controls.Add($label) $form.ShowDialog() | Out-Null
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.