ホーム › UI.Accessibility › IUIAutomationElement7
IUIAutomationElement7
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 110 HRESULT FindFirstWithOptions(TreeScope scope, IUIAutomationCondition* condition, TreeTraversalOptions traversalOptions, IUIAutomationElement* root, IUIAutomationElement** found)
| scope | TreeScope | in | 検索を行う範囲(子孫、子のみ等)を指定する。 |
| condition | IUIAutomationCondition* | in | 一致を判定する条件を表すオブジェクトを指定する。 |
| traversalOptions | TreeTraversalOptions | in | ツリー探索の方向や順序を制御するオプションを指定する。 |
| root | IUIAutomationElement* | in | 探索の起点とする要素を指定する。NULL の場合はこの要素を起点とする。 |
| found | IUIAutomationElement** | out | 条件に最初に一致した要素を受け取るポインタである。 |
vtbl 111 HRESULT FindAllWithOptions(TreeScope scope, IUIAutomationCondition* condition, TreeTraversalOptions traversalOptions, IUIAutomationElement* root, IUIAutomationElementArray** found)
| scope | TreeScope | in | 検索を行う範囲を指定する。 |
| condition | IUIAutomationCondition* | in | 一致を判定する条件を表すオブジェクトを指定する。 |
| traversalOptions | TreeTraversalOptions | in | ツリー探索の方向や順序を制御するオプションを指定する。 |
| root | IUIAutomationElement* | in | 探索の起点とする要素を指定する。NULL の場合はこの要素を起点とする。 |
| found | IUIAutomationElementArray** | out | 条件に一致したすべての要素を表す要素配列を受け取るポインタである。 |
vtbl 112 HRESULT FindFirstWithOptionsBuildCache(TreeScope scope, IUIAutomationCondition* condition, IUIAutomationCacheRequest* cacheRequest, TreeTraversalOptions traversalOptions, IUIAutomationElement* root, IUIAutomationElement** found)
| scope | TreeScope | in | 検索を行う範囲を指定する。 |
| condition | IUIAutomationCondition* | in | 一致を判定する条件を表すオブジェクトを指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | 見つかった要素に対してキャッシュするプロパティやパターンを指定する要求である。 |
| traversalOptions | TreeTraversalOptions | in | ツリー探索の方向や順序を制御するオプションを指定する。 |
| root | IUIAutomationElement* | in | 探索の起点とする要素を指定する。NULL の場合はこの要素を起点とする。 |
| found | IUIAutomationElement** | out | 条件に最初に一致した要素を受け取るポインタである。 |
vtbl 113 HRESULT FindAllWithOptionsBuildCache(TreeScope scope, IUIAutomationCondition* condition, IUIAutomationCacheRequest* cacheRequest, TreeTraversalOptions traversalOptions, IUIAutomationElement* root, IUIAutomationElementArray** found)
| scope | TreeScope | in | 検索を行う範囲を指定する。 |
| condition | IUIAutomationCondition* | in | 一致を判定する条件を表すオブジェクトを指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | 見つかった要素に対してキャッシュするプロパティやパターンを指定する要求である。 |
| traversalOptions | TreeTraversalOptions | in | ツリー探索の方向や順序を制御するオプションを指定する。 |
| root | IUIAutomationElement* | in | 探索の起点とする要素を指定する。NULL の場合はこの要素を起点とする。 |
| found | IUIAutomationElementArray** | out | 条件に一致したすべての要素を表す要素配列を受け取るポインタである。 |
vtbl 114 HRESULT GetCurrentMetadataValue(INT targetId, UIA_METADATA_ID metadataId, VARIANT* returnVal)
| targetId | INT | in | メタデータを取得する対象を識別する ID を指定する。 |
| metadataId | UIA_METADATA_ID | in | 取得するメタデータの種類を表す ID を指定する。 |
| returnVal | VARIANT* | out | 取得したメタデータの値を受け取る VARIANT へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IUIAutomationElement7 "{204E8572-CFC3-4C11-B0C8-7DA7420750B7}" #usecom global IUIAutomationElement7 IID_IUIAutomationElement7 "{}" #comfunc global IUIAutomationElement7_FindFirstWithOptions 110 int,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindAllWithOptions 111 int,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindFirstWithOptionsBuildCache 112 int,sptr,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindAllWithOptionsBuildCache 113 int,sptr,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_GetCurrentMetadataValue 114 int,int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IUIAutomationElement7 "{204E8572-CFC3-4C11-B0C8-7DA7420750B7}" #usecom global IUIAutomationElement7 IID_IUIAutomationElement7 "{}" #comfunc global IUIAutomationElement7_FindFirstWithOptions 110 int,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindAllWithOptions 111 int,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindFirstWithOptionsBuildCache 112 int,sptr,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_FindAllWithOptionsBuildCache 113 int,sptr,sptr,int,sptr,sptr #comfunc global IUIAutomationElement7_GetCurrentMetadataValue 114 int,int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。