qq随意聊的VB源代码是怎样的?

来源:百度知道 编辑:UC知道 时间:2024/06/07 13:35:28
想要和一个不是好友的人聊,总要找那段代码然后在复制QQ号,我想用VB写个小程序,输入QQ号后直接打开那个窗口,这个对大家来说很简单吧?
谁能把代码写一下啊?谢谢,本人自学VB刚不久.
那个网站是这样的:http://wpa.qq.com/msgrd?V=1&Uin=******&Site=a-hai.net&Menu=yes
把星号换成QQ号

'创建一个按钮`一个文本`复制以下内容
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
'-------------------------------------------------------
Private Sub Command1_Click()
Dim ret&
ShellExecute hwnd, "open", "http://wpa.qq.com/msgrd?V=1&Uin=" + text1.Text, "", "", "1"
end

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

ShellExecute 0, "", "tencent://message?uin=171977759&Site