WinGetActiveStats
提供: AutoHotkey Wiki
実行制御 | GUI表示 | 演算・変数 | メモリ・DLL操作 | 文字列操作 |
キーボード | マウス | シェル | ウィンドウ | ウィンドウグループ
ステータスバー | コントロール | サウンド | ファイル | INIファイル |
レジストリ | 環境変数 | AutoHotkey | その他 | 設定関係 | オブジェクト
WinGetActiveStats[編集]
アクティブウィンドウのタイトルとサイズ、位置を取得。
WinGetActiveStats, Title, Width, Height, X, Y
Parameters[編集]
引数名 | 説明 |
---|---|
Title | タイトルを格納する変数名 |
Width/Height | ウィンドウの幅と高さを格納する変数名 |
X, Y | ウィンドウの水平座標と垂直座標を格納する変数名 |
Remarks[編集]
以下のコマンドと同じ動作。
WinGetTitle, Title, A
WinGetPos, X, Y, Width, Height, A
Related[編集]
WinGetPos, WinGetActiveTitle, WinGetTitle, WinGetClass, WinGetText, ControlGetText
Example(s)[編集]
WinGetActiveStats, Title, Width, Height, X, Y MsgBox, The active window "%Title%" is %Width% wide`, %Height% tall`, and positioned at %X%`,%Y%.