📄 xynetclienttest.vbs
字号:
dim doc
set doc = CreateObject("XYNetComClient.1")
doc.SetReadTimeout 10
if doc.Connect("Lobster", 3000) = 0 then
wscript.echo doc.GetLastError
wscript.echo doc.GetLastErrorCode
wscript.quit
end if
if doc.ReceiveData(10000000, false) then
wscript.echo doc.GetStringData
else
wscript.echo doc.GetLastError
end if
doc.SendStringData "Hello, world. This is a test. It is only a test. If it were not, you will hear some screaming coming from all directions."
if doc.ReceiveData(10000000, false) then
wscript.echo doc.GetStringData
else
wscript.echo doc.GetLastError
end if
'doc.Reset
set doc = nothing
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -