| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 922 人关注过本帖
标题:求助,大侠们帮忙看一下,谢谢,急!急!急!
取消只看楼主 加入收藏
chinarodney
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2007-5-3
收藏
 问题点数:0 回复次数:0 
求助,大侠们帮忙看一下,谢谢,急!急!急!
用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
快速回复:求助,大侠们帮忙看一下,谢谢,急!急!急!
数据加载中...
 
   



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

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