using System; using Arp.Prova.PlayLib; //このサンプルコードは、デスクトップアイコンの位置の移動を行います。 public class CodeClass { public static int CodeStart() { // ディスプレイの幅と高さを取得する。 int w = 0, h = 0; //ディスプレイの幅を取得する w = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; //ディスプレイの高さを取得する h = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; /************************ここから設定の変更を行います************************/ // デスクトップ上にあるノートパッドのアイコンをドラッグする PlayLib.Window("Program Manager").ListView("ListView").Drag("メモ帳"); // ノートパッドのアイコンをデスクトップ右下にドロップする。 // 画面の右下から、左上に縦100ピクセル、横50ピクセルずつずらした座標に移動させる PlayLib.Window("Program Manager").ListView("ListView").Drop(w-50, h-100); return 0; } }