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

用户界面自动化活动

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

获取部分屏幕截图

UiPath.MobileAutomation.Activities.TakeScreenshotPart

描述

Takes a screenshot of a predefined location on the mobile device screen with starting and ending points.

Use case

使用“截取部分屏幕截图”活动捕获移动设备屏幕上的矩形屏幕截图。例如,您可以使用“Tesseract OCR”活动从移动设备屏幕中提取文本,如以下屏幕截图所示。

确保定义以下属性:

  • Image in both Take Screenshot Part and Tessarect OCR.

  • Text for the Tesseract OCR output (e.g., outputText) and its corresponding variable as String in Data Manager.

    docs image

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • 指定区域- 指定要截取屏幕截图的移动设备部分。
  • 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.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.
属性面板
常见
  • 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”,则系统在执行项目时不会捕获任何错误。

  • DelayAfter - Delay time (in seconds) after executing the activity. The default value is 0.3 seconds.

  • DelayBefore - Delay time (in seconds) before the activity begins performing any operations. The default value is 0.2 seconds.

  • “显示名称”- 活动的显示名称。

  • Timeout - specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.

输入
  • 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.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • Screenshot part - The screenshot part of the mobile device, stored in an Image object. This field supports only Image variables.
  • 描述
  • Use case
  • 项目兼容性
  • 配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。