当前位置:网站首页>[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
边栏推荐
- 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.
- Opengauss database log management guide
- Druids connect to mysql8.0.11
- 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
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Hcip day 14 notes
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Simple solution of m3u8 file format
- Shell script three swordsman awk
- D24:divisor and multiple (divisor and multiple, translation + solution)
猜你喜欢

How to restore the factory settings of HP computer

In 2022, 6G development has indeed warmed up
![[Happy Valentine's day]](/img/d9/9280398eb64907a567df6eea772adb.jpg)
[Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)

How to write a good title of 10w+?

IO flow review

Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation

How the computer flushes the local DNS cache

A preliminary study on the middleware of script Downloader

2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents

Interpretation of corolla sub low configuration, three cylinder power configuration, CVT fuel saving and smooth, safety configuration is in place
随机推荐
Subset enumeration method
Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
Unsafe and CAS principle
2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents
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
[network security] what is emergency response? What indicators should you pay attention to in emergency response?
Go error collection | talk about the difference between the value type and pointer type of the method receiver
在恒泰证券开户怎么样?安全吗?
Learning methods of zynq
finalize finalization finally final
How to solve the problem of requiring a password when accessing your network neighborhood on your computer
How to write a good title of 10w+?
Op amp related - link
炒股开户佣金优惠怎么才能获得,网上开户安全吗
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
Text replacement demo
How to switch between dual graphics cards of notebook computer
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
2022.02.14
Selenium check box