Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 482

PowerShell GUIs • Calculating bottom right of screen to position

$
0
0
I am using the below to get the screen size , but not sure how to to calculate the bottom right .

Please help if possible

$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[2]
$width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[0]

Statistics: Posted by halexand_sfwmd — Fri Jan 12, 2024 6:00 am



Viewing all articles
Browse latest Browse all 482

Trending Articles