> ## 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.

# 设置窗口是否显示

## 指令说明

**描述：** 设置窗口是否显示。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=23146963548380eefffb53d6210e3cd8" alt="设置窗口是否显示指令参数面板" width="650" height="370" data-path="helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-01.png" />

    | 参数         | 说明                            |
    | ---------- | ----------------------------- |
    | **获取窗口方式** | 选择获取窗口方式，窗口对象、窗口标题或类型名、捕获窗口元素 |
    | **窗口对象**   | 输入一个通过"获取窗口对象"获取的窗口对象         |
    | **窗体可见性**  | 对窗口选择设置：显示窗口、隐藏窗口             |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=2ef7d59e8f64067f882221f6093a4a91" alt="设置窗口是否显示使用示例 - 流程搭建" width="1324" height="144" data-path="helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-02.png" />

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

使用【获取窗口对象】获取目标窗口。

使用【设置窗口是否显示】将窗口设置为显示状态。

### 效果展示

执行完成后，目标窗口将按配置显示。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=612f38802fb0164e00926f15ebd0ad0a" alt="设置窗口是否显示使用示例 - 运行日志" width="1304" height="185" data-path="helpcenter/commands/desktop-automation/images/setwindowvisibilitycommand-03.png" />

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