diff --git a/LANCommander/Snippets/Variables/Display.ps1 b/LANCommander/Snippets/Variables/Display.ps1 index 5e09b9e..eca1e0e 100644 --- a/LANCommander/Snippets/Variables/Display.ps1 +++ b/LANCommander/Snippets/Variables/Display.ps1 @@ -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 \ No newline at end of file +$Display = ([System.Windows.Forms.Screen]::AllScreens | Where-Object Primary).Bounds \ No newline at end of file