Fix display snippet

pull/19/head
Pat Hartl 2023-03-23 19:08:35 -05:00
parent 885bc6bbec
commit 84f6c8d58b
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
# Accessible via $Display.Width and $Display.Height
Add-Type -AssemblyName System.Windows.Forms
$Display = [System.Windows.Forms.Screen]::AllScreens | Where-Object Primary | Select Bounds
$Display = ([System.Windows.Forms.Screen]::AllScreens | Where-Object Primary).Bounds