| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 922 人关注过本帖
标题:求助,大侠们帮忙看一下,谢谢,急!急!急!
只看楼主 加入收藏
chinarodney
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2007-5-3
收藏
 问题点数:0 回复次数:3 
求助,大侠们帮忙看一下,谢谢,急!急!急!
用VB做一个QQ2007的登录器
 Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
  Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
  Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  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
   
  Option Explicit
  Private Const WM_SETTEXT = &HC
  Private Const BM_CLICK = &HF5
  Dim password(100) As Long
  Public a As String, b As Long
  Private Sub Command1_Click()
  
  ShellExecute Me.hwnd, "open", Text1.Text, vbNullString, vbNullString, vbNormalFocus
  Dim QQHwnd     As Long, QHwnd       As Long, PHwnd       As Long, RHwnd       As Long
  Do While RHwnd = 0
    QQHwnd = FindWindow("#32770", vbNullString)
    QHwnd = FindWindowEx(QQHwnd, 0, "ComboBox", vbNullString)
    PHwnd = FindWindowEx(QQHwnd, 0, "Edit", vbNullString)
    RHwnd = FindWindowEx(QQHwnd, 0, "Button", "登录")
    DoEvents
  Loop
  a = Combo1.List(Combo1.ListIndex)
  b = password(Combo1.ListIndex)
  SendMessage QHwnd, WM_SETTEXT, 0, ByVal a 'QQ号码.
  SendMessage PHwnd, WM_SETTEXT, 0, ByVal b  '为密码.
  SendMessage RHwnd, BM_CLICK, 0, 0         '点击登录按钮
 
  End
就是写不进去密码,大侠们帮忙看一下,谢谢,急!急!急!
搜索更多相关主题的帖子: QQ2007 登录器 
2008-01-07 16:23
vbtom
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2007-9-5
收藏
得分:0 
不懂也要顶。
2008-01-07 16:27
lutsao
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-10-20
收藏
得分:0 
yes
2008-01-08 23:03
xi210602
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-12-27
收藏
得分:0 
路过  看不懂
2008-01-10 14:07
快速回复:求助,大侠们帮忙看一下,谢谢,急!急!急!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026903 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved