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

# 檢視與操作主機的前面板 (wdpanel.exe)

> 檢視與操作主機的前面板 (wdpanel.exe)

使用此工具檢視與操作主機的前面板。

| 命令 | 描述 |
| - | - |
| [button](#wdapp_button) | 按下前面板上的按鈕 |
| [screenshot]() | 擷取前面板的螢幕擷取畫面 |
| [script](#wdapp_script) | 將指令碼套用至前面板按鈕 |
| [enable]() | 啟用前面板顯示 |
| [disable](#wdapp_disable) | 停用前面板顯示 |

<a id="wdapp_button" />

## wdpanel button

按下前面板上的按鈕。

`wdpanel button <buttonValue>`

| 選項 | 描述 |
| - | - |
| `buttonValue` | 要按下的按鈕。允許的值為 1-5、up、down、left、right、select 與 switch。 |

<a id="wdapp_screenshot" />

## wdpanel screenshot

以 PNG 檔案格式擷取前面板的螢幕擷取畫面。

`wdpanel screenshot [<filename>]`

| 選項 | 描述 |
| - | - |
| `filename` | 輸出檔案的名稱。 |

<a id="wdapp_script" />

## wdpanel script

將內建或自訂指令碼套用至前面板按鈕。指令碼必須已存在於主機上，並以名稱 (而非檔案路徑) 識別。

`wdpanel script <buttonNumber> <scriptname> [custom]`

| 選項 | 描述 |
| - | - |
| `buttonNumber` | 前面板按鈕的編號。允許的值為 1-5。 |
| `scriptname` | 要套用至指定按鈕的指令碼名稱。 |
| `custom` | |

<a id="wdapp_enable" />

## wdpanel enable

啟用前面板顯示。

`wdpanel enable`

<a id="wdapp_disable" />

## wdpanel disable

清除並停用前面板顯示。

`wdpanel disable`

## 另請參閱

[主機命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools)

[XTF 傳輸錯誤](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/consolecommandlinetools.md)
- [適用於 XBOX 的主機型命令列工具](/zh-TW/tools/tools-console/console_commandlinetools/index.md)
- [XBOX Manager：管理主機設定](/zh-TW/tools/tools-console/xbom/manager-tool-console-settings.md)
- [XBOX Manager](/zh-TW/tools/tools-console/xbom/xbom.md)
- [前面板 URI](/zh-TW/reference/deviceportal/frontpanel/atoc-rest-frontpanel.md)
