UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

用户界面自动化活动

上次更新日期 2026年5月14日

TypeText

获取通过键盘键入的内容,并将其粘贴到当前处于活动状态的用户界面元素中。 要将文本粘贴到所需的元素内,您需要将焦点放在用户界面上要粘贴文本的任意位置。 在自动化应用程序时,您可以使用此 API,您需要通过键盘键入文本,但没有移动自动化可识别的目标元素。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

TypeText(string, MobileOptions.TypeTextOptions)

TypeText(
	    string text,
	    MobileOptions. TypeTextOptions options = null
)
TypeText(
	    string text,
	    MobileOptions. TypeTextOptions options = null
)

text “字符串” :要在活动用户界面元素中输入的标准文本。

options MobileOptions.TypeTextOptions (可选):为设置文本操作指定MobileOptions.TypeTextOptions 。默认值为 null。

  • 定义
  • TypeText(string, MobileOptions.TypeTextOptions)

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新