Update display snippet to grab primary display. Previous calls did not work with some drivers.
This commit is contained in:
parent
a10e8966b5
commit
a07416277b
1 changed files with 3 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
# Accessible via $Display.ScreenWidth and $Display.ScreenHeight
|
||||
$Display = Get-WmiObject -Class Win32_DesktopMonitor | Select-Object ScreenWidth,ScreenHeight
|
||||
# Accessible via $Display.Width and $Display.Height
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
$Display = [System.Windows.Forms.Screen]::AllScreens | Where-Object Primary | Select Bounds
|
Loading…
Add table
Reference in a new issue