当前位置:网站首页>[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
边栏推荐
- MLX90614 driver, function introduction and PEC verification
- Loop compensation - explanation and calculation of first-order, second-order and op amp compensation
- [Android reverse] use the DB browser to view and modify the SQLite database (copy the database file from the Android application data directory | use the DB browser tool to view the data block file)
- D23:multiple of 3 or 5 (multiple of 3 or 5, translation + solution)
- Text replacement demo
- 股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
- Errors taken 1 Position1 argument but 2 were given in Mockingbird
- ADB related commands
- . Net ADO splicing SQL statement with parameters
- Opengauss database log management guide
猜你喜欢

How to restore the factory settings of HP computer
![[Android reverse] use the DB browser to view and modify the SQLite database (copy the database file from the Android application data directory | use the DB browser tool to view the data block file)](/img/6e/3ffa91154a718b6ace6c8ca87c5995.jpg)
[Android reverse] use the DB browser to view and modify the SQLite database (copy the database file from the Android application data directory | use the DB browser tool to view the data block file)

Schematic diagram of crystal oscillator clock and PCB Design Guide

Es6~es12 knowledge sorting and summary

Unity shader visualizer shader graph

2/14 (regular expression, sed streaming editor)

Programming language (1)

Esp-idf turns off serial port log output.

What are the common computer problems and solutions

Runtime. getRuntime(). totalMemory/maxMemory()
随机推荐
Gorilla/mux framework (RK boot): add tracing Middleware
Pyqt5 sensitive word detection tool production, operator's Gospel
D27:mode of sequence (maximum, translation)
Ppt image processing
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
C deep anatomy - the concept of keywords and variables # dry inventory #
2022.02.14
How to write a good title of 10w+?
Hcip day 12 notes
D26: the nearest number (translation + solution)
In VS_ In 2019, scanf and other functions are used to prompt the error of unsafe functions
. Net ADO splicing SQL statement with parameters
Bufferpool caching mechanism for executing SQL in MySQL
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
C summary of knowledge point definitions, summary notes
[untitled]
Weekly leetcode - nc9/nc56/nc89/nc126/nc69/nc120
Get current JVM data
2022.02.13
2022 examination of safety production management personnel of hazardous chemical production units and examination skills of safety production management personnel of hazardous chemical production unit