VB如何自动登陆QQ2009
下面这个代码对QQ2008有用但是QQ2009就没效果了。Private Sub Form_Load()
On Error Resume Next
Dim path
Set shell1 = CreateObject("WScript.shell")
path = shell1.RegRead("HKLM\SOFTWARE\Tencent\PLATFORM_TYPE_LIST\1\TypePath")
If path = "" Then
path = shell1.RegRead("HKCR\QQ\shell\open\command\")
path = Mid(path, 2, InStrRev(path, ".") + 2)
End If
Set Short = CreateObject("Scripting.filesystemObject")
Set F = Short.getfile(path)
path = F.ShortPath
QQUin = "123456" 'QQ号
QQPwdHash = "123456" '密码
QQPwdHash = BASE64(MD5(QQPwdHash)) & "=="
shell1.run (path & " /START QQUIN:" & QQUin & " PWDHASH:" & QQPwdHash & " /STAT:41") '40隐身登陆;41在线登陆
End Sub