MonitorGetPrimary() Function Returns Non-primary Monitor #
Posted: 28 Jun 2020, 17:26
Why is it saying my Primary monitor is "3", when my system says "1"? Might this be because before setting Monitor #1 to be my main display in system display settings, my computer defaults to monitor #3 being primary? Even if that's the case, is this odd behavior? And why would my system default Monitor #3 to being the primary one? Just seems funky
code:
output:
Thanks for reading.
code:
Code: Select all
monitorInfo := ""
MonitorCount := MonitorGetCount()
MonitorPrimary := MonitorGetPrimary()
Loop( MonitorCount )
monitorInfo .= "Monitor Name:`t" MonitorGetName( A_Index ) "`n`nMonitor Number`t#" A_Index "`n`n"
MsgBox( monitorInfo "`n`nPrimary Monitor=`t#" MonitorPrimary )
Thanks for reading.