?? 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 + -