- 概要
- UI Automation
- UI Automation アクティビティ パッケージについて
- UI Automation を使用して自動化されるアプリケーションと技術
- プロジェクトの対応 OS
- UI-ANA-016 - [ブラウザーを開く] に使用されている URL を検出
- UI-ANA-017 - [エラー発生時に実行を継続] の値が True
- UI-ANA-018 - OCR/画像関連のアクティビティのリスト
- UI-DBP-006 - コンテナーの使用
- UI-DBP-013 - Excel の自動化方法の誤用
- UI-DBP-030 - セレクター内での変数の使用禁止
- UI-DBP-031 - アクティビティの検証
- UI-PRR-001 - クリックをシミュレート
- UI-PRR-002 - 入力をシミュレート
- UI-PRR-003 - [アプリケーションを開く] の誤用
- UI-PRR-004 - ハードコードされた待機時間
- UI-REL-001 - セレクター内の大きいインデックス値
- UI-SEC-004 - メール アドレスのデータを含むセレクター
- UI-SEC-010 - アプリ/URL の制限
- UI-USG-011 - 許可されていない属性
- UX-SEC-010 - アプリ/URL の制限
- UX-DBP-029 - セキュリティで保護されていないパスワードの使用
- UI-PST-001 - [プロジェクト設定] の監査ログ レベル
- UiPath ブラウザー移行ツール
- クリッピング領域
- Computer Vision レコーダー
- アクティビティの索引
- アクティベート
- アンカー ベース
- ブラウザーにアタッチ
- ウィンドウにアタッチ
- ユーザー入力をブロック
- 吹き出し
- チェック
- クリック
- 画像をクリック
- 画像クリック トリガー
- OCR で検出したテキストをクリック
- テキストをクリック
- クリック トリガー
- アプリケーションを閉じる
- タブを閉じる
- ウィンドウを閉じる
- コンテキスト対応のアンカー
- 選択されたテキストをコピー
- 要素属性変更トリガー
- 要素の存在を確認
- 要素スコープ
- 要素ステート変更トリガー
- UI ツリーをエクスポート
- 構造化データを抽出
- 子要素を探す
- 要素を探す
- 画像を探す
- 一致する画像を探す
- OCR でテキスト位置を探す
- 相対要素を探す
- テキスト位置を探す
- アクティブ ウィンドウを取得
- 親要素を取得
- 属性を取得
- イベント情報を取得
- クリップボードから取得
- フル テキストを取得
- OCR でテキストを取得
- パスワードを取得
- 位置を取得
- ソース要素を取得
- テキストを取得
- 表示中のテキストを取得
- 前に戻る
- 次に進む
- ホームに移動
- Google Cloud Vision OCR
- ウィンドウを隠す
- 強調表示
- ホットキー トリガー
- ホバー
- 画像上でホバー
- OCR で検出したテキスト上でホバー
- テキスト上でホバー
- 画像の存在を確認
- 画面上で指定
- .NET コードを挿入
- JS スクリプトを挿入
- ActiveX メソッドを呼び出し
- キー操作トリガー
- 画像を読み込み
- ウィンドウを最大化
- Microsoft Azure ComputerVision OCR
- Microsoft OCR
- Microsoft Project Oxford Online OCR
- ウィンドウを最小化
- イベントを監視
- マウス トリガー
- ウィンドウを移動
- URL に移動
- OCR でテキストの存在を確認
- 要素が出現したとき
- 要素が消滅したとき
- 画像が出現したとき
- 画像が消滅したとき
- アプリケーションを開く
- ブラウザーを開く
- ブラウザーを更新
- ユーザー イベントを再生
- ウィンドウを復元
- 画像を保存
- 項目を選択
- 複数の項目を選択
- ホットキーを押下
- クリッピング領域を設定
- フォーカスを設定
- テキストを設定
- クリップボードに設定
- Web 属性を設定
- ウィンドウを表示
- プロセスを開始
- システム トリガー
- スクリーンショットを作成
- Tesseract OCR
- テキストの存在を確認
- ツールチップ
- 文字を入力
- SecureString で文字を入力
- フォアグラウンドを使用
- 属性を待つ
- 要素の消滅を待つ
- 画像の消滅を待つ
- アクセシビリティ チェック
- アプリケーション イベント トリガー
- ユーザー入力をブロック
- チェック/チェック解除
- アプリのステートを確認
- 要素を確認
- クリック
- クリック イベント トリガー
- ドラッグ アンド ドロップ
- 表データを抽出
- 要素を探す
- 繰り返し (各 UI 要素)
- ブラウザーのデータを取得
- クリップボードを取得
- テキストを取得
- URL を取得
- URL に移動
- 強調表示
- ホバー
- JS スクリプトを挿入
- キーボード ショートカット
- キー押下イベント トリガー
- マウス スクロール
- ブラウザー内を移動
- 項目を選択
- ブラウザーのデータを設定
- クリップボードに設定
- ランタイム ブラウザーを設定
- フォーカスを設定
- テキストを設定
- スクリーンショットを作成
- 文字を入力
- ユーザー入力のブロックを解除
- アプリケーション/ブラウザーを使用
- ウィンドウ操作
- UI Automation API を使用してブラウザー検索を実行し、結果を取得する
- Web の閲覧
- 画像を検索する
- 画像をクリックする
- イベントをトリガーおよび監視する
- ファイルを作成して上書きする
- HTML ページ: 情報を抽出して操作する
- ウィンドウの操作
- リスト項目の選択の自動化
- ウィンドウ要素を探して操作する
- テキスト操作の自動化を行う
- 画像を読み込んで処理する
- マウスでアクティブ化する操作を管理する
- アプリケーションランタイムの操作を自動化する
- ローカル アプリケーションの自動実行
- ブラウザーのナビゲーション
- Web オートメーション
- トリガー スコープの例
- DevExpress での UI Automation の有効化
- Computer Vision Local Server
- モバイル オートメーション
- ターミナル

UI Automation アクティビティ
文字を入力
テキスト ボックスなどの指定した UI 要素にテキストを入力します。Tab や Enter などの特殊キーを UI 要素に送信することもできます。
機密情報を安全に入力するには、この API の前に GetCredential API を追加して、その API で取得し、後で使用するために保存したユーザー名とパスワードの値を、入力するテキストとして選択します。
定義
名前空間: UiPath.UIAutomationNext.API.Models
アセンブリ: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)
オーバー ロード
| オーバーロード | 説明 |
|---|---|
TypeInto(TargetAnchorableModel, String) | オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。 |
TypeInto(TargetAnchorableModel, TypeIntoOptions) | TargetAnchorableModel オブジェクトとして識別された特定の UI 要素にテキストを入力します。 |
TypeInto(String, String) | オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。 |
TypeInto(String, TypeIntoOptions) | オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。同時に、その他の設定も行います。 |
TypeInto(TargetAnchorableModel, String)
オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。
TypeInto(
TargetAnchorableModel target,
string text)
TypeInto(
TargetAnchorableModel target,
string text)
target TargetAnchorableModel : ターゲット UI 要素。TargetAnchorableModel オブジェクトとして識別されます。
text文字列 : 入力するテキスト。
TypeInto(TargetAnchorableModel, TypeIntoOptions)
TargetAnchorableModel オブジェクトとして識別された特定の UI 要素にテキストを入力します。
TypeInto(
TargetAnchorableModel target,
TypeIntoOptions typeIntoOptions)
TypeInto(
TargetAnchorableModel target,
TypeIntoOptions typeIntoOptions)
target TargetAnchorableModel : ターゲット UI 要素。TargetAnchorableModel オブジェクトとして識別されます。
typeIntoOptions TypeIntoOptions : 次のオプションが利用できます。
* `Text
String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
seconds) between consecutive keystrokes. The default value is 0.02
seconds.
* `ActivateBefore Boolean` - If true,
the specified UI element is brought to the foreground and activated
before the text is typed in. If false, the API will type into the
current active window.
* `ClickBeforeMode NClickMode` - the
type of click to perform before typing into:
+ `None`
+ `Single`
+ `Double`
* `EmptyFieldMode NEmptyFieldMode` -
Choose whether to delete the existing content in the field
before typing the text, and how to empty the field. Fields are
emptied by sending a combination of keystrokes that differs
between fields with a single line and fields with multiple
lines. Make sure to select the right option depending on the
indicated field. The options are:
+ `None`
+ `SingleLine`
+ `MultiLine`
* `DeselectAfter Boolean` - This can
only be used when the `InteractionMode` is set to
`Simulate`. Some target applications do not
register a type action unless a Complete event is also sent
alongside the action. Setting this to true adds a Complete event
after the text entry, in order to register the action correctly. If
you set it to false, the Complete event is not sent to the target
application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
true, the Select Item action is executed even if the specified UI
element is disabled. This parameter does not apply if the
`InteractionMode` is set to `Hardware
Events`. By default, this is false.
* `InteractionMode
NChildInteractionMode` - Specifies the API used to
perform the action. The following options are available:
+ `SameAsCard` - Use the same input mode
as [Open](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works for Chromium elements only. Sends all
text in one go. Works even if the target application is not
in focus. For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
* `Text
String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
seconds) between consecutive keystrokes. The default value is 0.02
seconds.
* `ActivateBefore Boolean` - If true,
the specified UI element is brought to the foreground and activated
before the text is typed in. If false, the API will type into the
current active window.
* `ClickBeforeMode NClickMode` - the
type of click to perform before typing into:
+ `None`
+ `Single`
+ `Double`
* `EmptyFieldMode NEmptyFieldMode` -
Choose whether to delete the existing content in the field
before typing the text, and how to empty the field. Fields are
emptied by sending a combination of keystrokes that differs
between fields with a single line and fields with multiple
lines. Make sure to select the right option depending on the
indicated field. The options are:
+ `None`
+ `SingleLine`
+ `MultiLine`
* `DeselectAfter Boolean` - This can
only be used when the `InteractionMode` is set to
`Simulate`. Some target applications do not
register a type action unless a Complete event is also sent
alongside the action. Setting this to true adds a Complete event
after the text entry, in order to register the action correctly. If
you set it to false, the Complete event is not sent to the target
application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
true, the Select Item action is executed even if the specified UI
element is disabled. This parameter does not apply if the
`InteractionMode` is set to `Hardware
Events`. By default, this is false.
* `InteractionMode
NChildInteractionMode` - Specifies the API used to
perform the action. The following options are available:
+ `SameAsCard` - Use the same input mode
as [Open](https://docs.uipath.com/ja/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/ja/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works for Chromium elements only. Sends all
text in one go. Works even if the target application is not
in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
TypeInto(String, String)
オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。
TypeInto(
string target,
string text)
TypeInto(
string target,
string text)
target : 入力先のターゲット UI 要素です。オブジェクト リポジトリで文字列として識別されます。
text文字列 : 入力するテキスト。
TypeInto(String, TypeIntoOptions)
オブジェクト リポジトリで文字列として識別された特定の UI 要素にテキストを入力します。同時に、その他の設定も行います。
TypeInto(
string target,
TypeIntoOptions typeIntoOptions)
TypeInto(
string target,
TypeIntoOptions typeIntoOptions)
target : 入力先のターゲット UI 要素です。オブジェクト リポジトリで文字列として識別されます。
typeIntoOptions TypeIntoOptions : 次のオプションが利用できます。
* `Text
String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
seconds) between consecutive keystrokes. The default value is 0.02
seconds.
* `ActivateBefore Boolean` - If true,
the specified UI element is brought to the foreground and activated
before the text is typed in. If false, the API will type into the
current active window.
* `ClickBeforeMode NClickMode` - the
type of click to perform before typing into:
+ `None`
+ `Single`
+ `Double`
* `EmptyFieldMode NEmptyFieldMode` -
Choose whether to delete the existing content in the field
before typing the text, and how to empty the field. Fields are
emptied by sending a combination of keystrokes that differs
between fields with a single line and fields with multiple
lines. Make sure to select the right option depending on the
indicated field. The options are:
+ `None`
+ `SingleLine`
+ `MultiLine`
* `DeselectAfter Boolean` - This can
only be used when the `InteractionMode` is set to
`Simulate`. Some target applications do not
register a type action unless a Complete event is also sent
alongside the action. Setting this to true adds a Complete event
after the text entry, in order to register the action correctly. If
you set it to false, the Complete event is not sent to the target
application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
true, the Select Item action is executed even if the specified UI
element is disabled. This parameter does not apply if the
`InteractionMode` is set to `Hardware
Events`. By default, this is false.
* `InteractionMode
NChildInteractionMode` - Specifies the API used to
perform the action. The following options are available:
+ `SameAsCard` - Use the same input mode
as [Open](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works for Chromium elements only. Sends all
text in one go. Works even if the target application is not
in focus. For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
* `Text
String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
seconds) between consecutive keystrokes. The default value is 0.02
seconds.
* `ActivateBefore Boolean` - If true,
the specified UI element is brought to the foreground and activated
before the text is typed in. If false, the API will type into the
current active window.
* `ClickBeforeMode NClickMode` - the
type of click to perform before typing into:
+ `None`
+ `Single`
+ `Double`
* `EmptyFieldMode NEmptyFieldMode` -
Choose whether to delete the existing content in the field
before typing the text, and how to empty the field. Fields are
emptied by sending a combination of keystrokes that differs
between fields with a single line and fields with multiple
lines. Make sure to select the right option depending on the
indicated field. The options are:
+ `None`
+ `SingleLine`
+ `MultiLine`
* `DeselectAfter Boolean` - This can
only be used when the `InteractionMode` is set to
`Simulate`. Some target applications do not
register a type action unless a Complete event is also sent
alongside the action. Setting this to true adds a Complete event
after the text entry, in order to register the action correctly. If
you set it to false, the Complete event is not sent to the target
application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
true, the Select Item action is executed even if the specified UI
element is disabled. This parameter does not apply if the
`InteractionMode` is set to `Hardware
Events`. By default, this is false.
* `InteractionMode
NChildInteractionMode` - Specifies the API used to
perform the action. The following options are available:
+ `SameAsCard` - Use the same input mode
as [Open](https://docs.uipath.com/ja/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/ja/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works for Chromium elements only. Sends all
text in one go. Works even if the target application is not
in focus. For more details, check out this [page](https://docs.uipath.com/ja/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.