当前位置:网站首页>[source code] VB6 chat robot
[source code] VB6 chat robot
2022-07-03 23:23:00 【A novice】
I don't say much nonsense , Directly above
Go straight to source
The idea of the program is probably to call online API Make a call , use VB Get the value passed back, and then do simple processing and put it into List Inside , Because multithreading is not used , Yes, so when sending and receiving information, I will get stuck .
Private Sub Command1_Click()
Dim str
Set http = CreateObject("Msxml2.ServerXMLHTTP")
str = Text1.Text
Text1.Text = ""
List1.AddItem (" you :" & str)
url = "http://api.qingyunke.com/api.php?key=free&appid=0&msg=" & str
http.Open "POST", url, False
http.send a
txt = http.responsetext
List1.AddItem (" robot :" & Split(txt, """")(5))
List1.ListIndex = List1.ListCount - 1
List1.ListIndex = -1
End Sub
Private Sub Command2_Click()
Static i
i = i + 1
Label1.Caption = " Robots get praise :" & i
End Sub
Private Sub Form_Load()
MsgBox (" Welcome to the robot chat interface , Go and chat !")
End Sub
Private Sub List1_DblClick()
If Check1.Value = 0 Then
a = InputBox(" Please copy by yourself ", " Copy window ", List1.Text)
Else
Clipboard.SetText (List1.Text)
End If
End Sub
边栏推荐
- Simple solution of m3u8 file format
- Take you to master the formatter of visual studio code
- Programming language (2)
- Learning methods of zynq
- Creation of the template of the password management software keepassdx
- Actual combat | use composite material 3 in application
- D30:color tunnels (color tunnels, translation)
- Gorilla/mux framework (RK boot): add tracing Middleware
- Hcip day 12 notes
- Pandaoxi's video
猜你喜欢
How to quickly build high availability of service discovery
Pan Yueming helps Germany's Rochester Zodiac custom wristwatch
How can enterprises and developers take advantage of the explosion of cloud native landing?
Creation of the template of the password management software keepassdx
Fluent learning (4) listview
Recursive least square adjustment
Es6~es12 knowledge sorting and summary
[automation operation and maintenance novice village] flask-2 certification
How to solve the problem of computer networking but showing no Internet connection
Learning notes of raspberry pie 4B - IO communication (SPI)
随机推荐
[Android reverse] use DB browser to view and modify SQLite database (download DB browser installation package | install DB browser tool)
Shell script three swordsman awk
Pan Yueming helps Germany's Rochester Zodiac custom wristwatch
Current detection circuit - including op amp current scheme
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
Bufferpool caching mechanism for executing SQL in MySQL
Scratch uses runner Py run or debug crawler
Sword finger offer day 4 (Sword finger offer 03. duplicate numbers in the array, sword finger offer 53 - I. find the number I in the sorted array, and the missing numbers in sword finger offer 53 - ii
C3p0 connection MySQL 8.0.11 configuration problem
Summary of fluent systemchrome
Recursion and recursion
The 2022 global software R & D technology conference was released, and world-class masters such as Turing prize winners attended
Programming language (2)
Yyds dry goods inventory [practical] simply encapsulate JS cycle with FP idea~
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
540. Single element in ordered array
Exclusive download! Alibaba cloud native brings 10 + technical experts to bring "new possibilities of cloud native and cloud future"
Unique in China! Alibaba cloud container service enters the Forrester leader quadrant
URLEncoder. Encode and urldecoder Decode processing URL