ウィンドウの位置/サイズを変更します。
WinMove "title", "text", x, y [, width [, height]]
パラメータ
| title | 位置/サイズを変更するウィンドウのタイトル |
| text | 位置/サイズを変更するウィンドウのテキスト |
| x | 位置変更先のX座標 |
| y | 位置変更先のY座標 |
| width | オプション:新しいウィンドウの幅 |
| height | オプション:新しいウィンドウの高さ |
返し値
なし。
注意
WinMoveは最小化されたウィンドウには効果がありません。しかし、隠されたウィンドウには有効です。
関連
WinActivate, WinClose, WinSetState
例
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoIt.WinMove "Untitled -", "", 0, 0, 200, 200