xczxczxcz (Tα酱油路过)当前离线
中尉
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms"); $width=[System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Width; $height=[System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Height;复制代码
TOP
[System.Reflection.Assembly]::LoadWithPartialName("system.windows.forms")|out-null; $w=[System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width; $h=[System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height;复制代码
[System.Reflection.Assembly]::LoadWithPartialName("system.windows.forms")|out-null; [System.Windows.Forms.Screen]::AllScreens;复制代码