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

用户界面自动化活动

上次更新日期 2026年3月4日

绘制图案

UiPath.MobileAutomation.Activities.DrawPattern

描述

在设备屏幕上绘制由多个点标记的路径。 根据手指在设备屏幕上的路径记录创建路径的点。 您可以添加多个手指路径,以模拟涉及多个手指的屏幕交互。

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • 按下类型- 选择屏幕的第一次触摸。您可以选择以下选项之一:

    • 短按docs image - 在手机屏幕上短按。
    • 长按docs image - 长按手机屏幕。 通常用于拖放操作。
  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:

    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • 设备独立像素- 使用此选项可在屏幕密度相似的设备上运行工作流。与设备无关的像素意味着您根据所选屏幕区域的像素密度指定目标。
  • 手指路径 - 在 XY 轴上,从手指在设备屏幕上的路径记录的所有点。您可以移动、编辑、删除点或向手指路径添加更多点。此外,您可以完全删除手指路径

    docs image

  • 添加手指路径- 添加另一个手指路径。建议用于模拟需要多个手指的屏幕交互。所有手指路径同时执行。

属性面板

常见

  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
备注:

如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • “在此之后延迟” - 完成此活动与下一个活动开始任何操作之间的延迟(以秒为单位)。默认值为 0.3 秒。在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。
  • “在此之前延迟” - 上一个活动完成与此活动开始执行任何操作之间的延迟(以秒为单位)。默认值为 0.2 秒。在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。
  • “显示名称”- 活动的显示名称。

输入

  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • 按下类型- 选择屏幕的第一次触摸。您可以选择以下选项之一:
    • 短按- 在移动屏幕上短按。
    • 长按- 在移动屏幕上长按。通常用于拖放操作。

其他

  • “私有” - 选中后将不再以“Verbose”级别记录变量和参数的值。

  • 等待时间- 等待手指路径中的某个点完成的时间(以毫秒为单位)。此字段仅支持Int32值。

    提示:

    要按预期工作, iOS设备的“等待时间”属性应长于0

示例

如需示例或供后续参考,请查看示例项目。

docs image

  • 描述
  • 项目兼容性
  • 配置
  • 示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新