ディスプレイ情報を取得

接続しているディスプレイの台数を取得

変数を設定 [$Result; 値:SMPS_Exe("[System.Windows.Forms.Screen]::AllScreens.Length;")]

戻り値:3

(ディスプレイ 3台接続時)

ディスプレイ情報を取得

変数を設定 [$Result; 値:SMPS_Exe("[System.Windows.Forms.Screen]::AllScreens;")]

戻り値:

Screen[Bounds={X=3200,Y=62,Width=1280,Height=1024}

WorkingArea={X=3200,Y=62,Width=1280,Height=994}

Primary=False

DeviceName=\\.\DISPLAY1

Screen[Bounds={X=0,Y=0,Width=1920,Height=1080}

WorkingArea={X=0,Y=0,Width=1920,Height=1050}

Primary=True

DeviceName=\\.\DISPLAY2

Screen[Bounds={X=1920,Y=62,Width=1280,Height=1024}

WorkingArea={X=1920,Y=62,Width=1280,Height=994}

Primary=False

DeviceName=\\.\DISPLAY4