高手。。。。。。。。。。。。
原代码 方式很多的
1. Shell "rundll32.exe url.dll,FileProtocolHandler tencent://message/?uin=" & qq号码
2.Sub ConnIEQQ(InQQnum As String)
Dim objIE As Object
Set objIE = CreateObject("InternetExplorer.Application")
objIE.navigate "tencent://message/?uin=" & InQQnum
End Sub
3.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 Const SW_SHOWNORMAL = 1
Sub ConnApiQQ(InQQnum As String)
ShellExecute 0, "Open", "tencent://message/?uin=" & InQQnum , "", "", SW_SHOWNORMAL
End Sub
[此贴子已经被作者于2007-10-11 10:35:03编辑过]