当前位置:网站首页>[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
边栏推荐
- C3p0 connection MySQL 8.0.11 configuration problem
- Text replacement demo
- How to solve the problem of computer networking but showing no Internet connection
- Les sociétés de valeurs mobilières dont la Commission d'ouverture d'un compte d'actions est la plus faible ont ce que tout le monde recommande.
- Exclusive download! Alibaba cloud native brings 10 + technical experts to bring "new possibilities of cloud native and cloud future"
- Es6~es12 knowledge sorting and summary
- Powerful blog summary
- 2.14 summary
- How to solve the problem of requiring a password when accessing your network neighborhood on your computer
- Can you draw with turtle?
猜你喜欢
Pyqt5 sensitive word detection tool production, operator's Gospel
How to understand the gain bandwidth product operational amplifier gain
2/14 (regular expression, sed streaming editor)
C deep anatomy - the concept of keywords and variables # dry inventory #
Flutter internationalized Intl
"Learning notes" recursive & recursive
Apple released a supplementary update to MacOS Catalina 10.15.5, which mainly fixes security vulnerabilities
Loop compensation - explanation and calculation of first-order, second-order and op amp compensation
Blue Bridge Cup -- guess age
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) simulated examination and Guangdong Provincial Safety Officer a certificate third batch (main person in charg
随机推荐
Firefox set up proxy server
Pandaoxi's video
Blue Bridge Cup -- Mason prime
Blue Bridge Cup -- guess age
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
Fashion cloud interview questions series - JS high-frequency handwritten code questions
X Opencv feature point detection and matching
Label coco format data and format data in the upper left corner and lower right corner are mutually converted
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
D25:sequence search (sequence search, translation + problem solving)
Comparable interface and comparator interface
D30:color tunnels (color tunnels, translation)
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
33 restrict the input of qlineedit control (verifier)
Minimum commission for stock account opening. Stock account opening is free. Is online account opening safe
Xiangong intelligent obtained hundreds of millions of yuan of b-round financing to accelerate the process of building non-standard solutions with standardized products
Subset enumeration method
How about opening an account at Hengtai securities? Is it safe?
2022.02.14
Simple solution of m3u8 file format