[General]
Description=命令例子：控制台Console插件
BeginHotkey=121
BeginHotkeyMod=0
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=123
StopHotkeyMod=0
RunOnce=1
EnableWindow=
Enable=0
AutoRun=0
[Repeat]
Type=0
Number=1
[Relative]
SetupOCXFile=
[Comment]
Content=

[Script]
// 测试OK
//下面这句是打开控制台窗口
Plugin Console.Open()
//下面这句是向控制台写入一行字符串
Plugin Console.WriteLine("请随意输入几个字，然后按回车")
//下面这句是从控制台读取一行字符串
Plugin ReadLine = Console.ReadLine()
//下面这句是向控制台写入一行字符串
Plugin Console.WriteLine("您的输入是" & ReadLine & vbcrlf)
Plugin Console.WriteLine("演示脚本结束，请按下Y键，退出控制台" & vbcrlf)
Rem WaitUserInputKey
//下面这句是等待用户在控制台的按键
Plugin userInput = Console.WaitKey()
If userInput = asc("y") or userInput = asc("Y")
    Plugin Console.Close()
Else 
    Goto WaitUserInputKey
EndIf 
//下面这句是关闭控制台窗口
Plugin Console.Close()
