指令碼語法:Send=Keyword
- Last Updated: October 16, 2024
- 2 minute read
- WhatsUp Gold
- Version 2024
若要在連線時傳送命令,請使用
Send=keyword
。指令碼語法是
Send=Command
。Command 就是您要傳送的訊息。您可混合使用文字和二進位表示法。
WhatsUp Gold 可理解 ANSI 7-bit 控制字元的 C0 集。二進位可以用 \
\x##
表示,
##
是十六進位值。熟悉此表的人亦可使用簡寫,例如
\A (\x01)
或
\W (\x17)
您也可以將
\r
和
\n
當作傳送歸位字元和換行控制字元的慣例,功能是結束一行。
下表是您可使用的關鍵字。
|
關鍵字 |
說明 |
|---|---|
|
|
十六進位 格式的二進位值。例如 \\x1B 代表 Esc |
|
|
「\」字元 |
|
|
Tab 字元 (\x09) |
|
|
Return 字元 (\x0D) |
|
|
換行字元 (\x0A) |
WhatsUp Gold 7 和 8 使用者:指定二進位八位元組所用的 %### 十進位語法,已經改為 \x## 十六進位語法。
例 1:
#
# Note: script comments start with a # character
#
# Send a simple text command
#
Send=Hello There
例 2:
#
# Send a command followed by CR/LF
#
Send=Select * from Accounts\r\n
例 3:
#
# Send a binary escape (27) an x y and z and then a nak (21)
#
Send=\x1Bxyz\x15