> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 拖拽元素(win)

## 指令说明

**描述：** 把桌面元素拖拽到指定位置。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/win_dragelementcommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=e6c0e067ee0131fa97aab2dea5b79923" alt="拖拽元素指令参数面板" width="646" height="474" data-path="helpcenter/commands/desktop-automation/images/win_dragelementcommand-01.png" />

    | 参数       | 说明                                                                                |
    | -------- | --------------------------------------------------------------------------------- |
    | **选择元素** | 从元素库中选择已捕获过的元素，或重新捕获元素                                                            |
    | **拖拽方式** | 拖拽至目标点：通过像素定位目标位置。按Ctrl+Alt可快捷输入坐标，即相对于屏幕左上角的当前鼠标所在位置。<br />拖拽至目标元素上：把元素拖到指定的元素上面 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/win_dragelementcommand-05.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=4523741f7771ae264efcceb4693267e3" alt="拖拽元素指令高级参数面板" width="651" height="370" data-path="helpcenter/commands/desktop-automation/images/win_dragelementcommand-05.png" />

    | 参数            | 说明                        |
    | ------------- | ------------------------- |
    | **执行后延迟(s)**  | 指令执行完成后的等待时间              |
    | **移动速度**      | 选择鼠标的移动速度，选项为：瞬间、快速、中速、慢速 |
    | **等待元素存在(s)** | 等待目标元素存在的超时时间             |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/win_dragelementcommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=7be1682d73b9492ad3f2d00a77a0a7da" alt="拖拽元素使用示例 - 流程搭建" width="936" height="168" data-path="helpcenter/commands/desktop-automation/images/win_dragelementcommand-02.png" />

**该流程执行逻辑：**

【获取窗口对象】获取名称为"拖拽元素"的窗口 → 【拖拽元素(win)】把文本文件元素拖拽到文件夹元素上面。

### 效果展示

成功将元素拖拽到目标位置。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/win_dragelementcommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=cc304c3e20464a99b4552d60fc1b8bbb" alt="拖拽元素使用示例 - 效果展示" width="927" height="200" data-path="helpcenter/commands/desktop-automation/images/win_dragelementcommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
