CoordMode

提供: AutoHotkey Wiki
移動: 案内検索

実行制御 | GUI表示 | 演算・変数 | メモリ・DLL操作 | 文字列操作 | キーボード | マウス | シェル | ウィンドウ | ウィンドウグループ
ステータスバー | コントロール | サウンド | ファイル | INIファイル | レジストリ | 環境変数 | AutoHotkey | その他 | 設定関係 | オブジェクト

CoordMode[編集]

各種座標の扱いをスクリーン上での絶対位置にするかアクティブウィンドウからの相対位置にするかを設定。

CoordMode, ToolTip|Pixel|Mouse|Caret|Menu [, Screen|Relative]

Parameters[編集]

引数名 説明
Param1 ToolTip ToolTipの表示座標
Pixel PixelGetColorPixelSearchImageSearchで使用する座標
Mouse MouseMoveMouseClickMouseClickDragMouseGetPosで使用する座標
Caret 組み込み変数A_CaretX,A_CaretYの座標
Menu Menu Showでの表示座標指定
Param2 Screen スクリーン上での絶対座標
Relative アクティブウィンドウの左上からの相対座標
Window [v1.1.05+]: Synonymous with Relative and recommended for clarity.
Client [v1.1.05+]: Coordinates are relative to the active window's client area, which excludes the window's title bar, menu (if it has a standard one) and borders. Client coordinates are less dependent on OS version and theme.
すべての項目の初期設定はRelative。
引数を省略したときは、Screenを指定したことになる。

Remarks[編集]

この設定の基本値は、スクリプトの最初のAuto-executeセクションで設定する。 ホットキーなどで新たに起動されたスレッドでは、設定は基本値に設定される。

Related[編集]

MouseMove, MouseClick, MouseClickDrag, MouseGetPos, PixelGetColor, PixelSearch, ToolTip, Menu

Example(s)[編集]

; Place ToolTips at absolute screen coordinates:
CoordMode, ToolTip, Screen