Page 1 of 1
Monitor resolution
Posted: 07 May 2024, 06:33
by Archimede
Hallo.
Is there a way to know the monitor resolution of all monitors in a system?
I know how to obtain the actual bounding coordinates, but I need to know all possible resolution of all monitor: is it possible?
Thank you very much.
Re: Monitor resolution
Posted: 07 May 2024, 09:25
by V0RT3X
For total screen resolution try...
Code: Select all
Sysget, totalWidth, 78
Sysget, totalHeight, 79
MsgBox % "Total screen resolution is " totalWidth " x " totalHeight
Result on my system...
![image.png](./download/file.php?style=1&id=25907&sid=8ae34f39309882866b4a615c8f622659)
- image.png (3.2 KiB) Viewed 485 times
For individual monitor info try...
Code: Select all
SysGet, MonitorCount, MonitorCount
SysGet, MonitorPrimary, MonitorPrimary
MsgBox, Monitor Count:`t%MonitorCount%`nPrimary Monitor:`t%MonitorPrimary%
Loop, %MonitorCount%
{
SysGet, MonitorName, MonitorName, %A_Index%
SysGet, Monitor, Monitor, %A_Index%
SysGet, MonitorWorkArea, MonitorWorkArea, %A_Index%
MsgBox, Monitor:`t#%A_Index%`nName:`t%MonitorName%`nLeft:`t%MonitorLeft% (%MonitorWorkAreaLeft% work)`nTop:`t%MonitorTop% (%MonitorWorkAreaTop% work)`nRight:`t%MonitorRight% (%MonitorWorkAreaRight% work)`nBottom:`t%MonitorBottom% (%MonitorWorkAreaBottom% work)
}
Results on my system...
![image.png](./download/file.php?style=1&id=25913&sid=8ae34f39309882866b4a615c8f622659)
- image.png (12.47 KiB) Viewed 485 times
Re: Monitor resolution
Posted: 07 May 2024, 16:38
by Archimede
Sorry.
That are all ACTUAL resolutions.
I need to know all the POSSIBLES resolutions for all monitor.
How I can know all that possible resolutions?