マルチディスプレイSysGet, MonitorCount, MonitorCount SysGet, MonitorPrimary, MonitorPrimary MsgBox, Monitor Count:`t%MonitorCount%`nPrimary Monitor:`t%MonitorPrimary%
SysGet, Mon, MonitorWorkArea, 1 MonHeight := MonBottom - MonTop MonWidth := MonRight - MonLeft MsgBox, WinX:%WinX%`nWinY:%WinY%`nHeight:%MonBottom%
マルチディスプレイでの位置情報 ---------------
| 2 |
| A |
| |---------------
| | 1 |
---------------| |
| |
| |
---------------
1がメインディスプレイで、2がサブディスプレイの場合、Aの位置は X:-100,Y:-50のようになる。 サブディスプレイのタスクバーを除いた幅と高さSysGet, MonWorkArea, MonitorWorkArea, 2 MsgBox, Width:%MonWorkAreaLeft%`nHeight:%MonWorkAreaBottom% サブディスプレイの番号が2の場合、上のように指定すると、Width:-1024 Height:728のように取得出来る。 参考 |
|