Skip to content

The current screen size is wrong? #13548

Closed
@Tudsday

Description

@Tudsday

powershell.ps1

Add-Type -AssemblyName System.Windows.Forms
$bounds = [System.Windows.Forms.SystemInformation]::VirtualScreen

Write-Host "W=$($bounds.Width) H=$($bounds.Height) X=$($bounds.X) Y=$($bounds.Y)"

output: W=2560 H=1440 X=0 Y=0

Image
But my monitor is 4K. Why is the reading error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-HDPIHDPI, not specific to Dpi mode of app

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions