SecureCRT 的三種指令碼例項,js,vb,Python
阿新 • • 發佈:2019-01-30
SecureCRT支援3種指令碼:
ActiveX Script: 主要是兩種:VBScript and JScript (Microsoft’s version of JavaScript)
Python scripts.
每種指令碼例項:(注意# 後要有一個空格)
# $language = "VBScript"
# $interface = "1.0"
Sub Main
' Display SecureCRT's version
MsgBox "SecureCRT version is: " & crt.Version
End Sub
# $language = "javascript" # $interface = "1.0" function main() { /* Display SecureCRT's version */ crt.Screen.Send( "SecureCRT version is: " + crt.Version); }
# $language = "Python"
# $interface = "1.0"
def main():
# Display SecureCRT's version
crt.Dialog.MessageBox("SecureCRT version is: " + crt.Version)
main()
常見專有函式列表:請檢視CRT的幫助手冊。