| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3286 人关注过本帖
标题:[求助]如何获取QQ信息窗口的句柄(如图)
只看楼主 加入收藏
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 

你做过拦截如 图的 QQ消息吗?


If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-05-06 14:12
ioriliao
Rank: 7Rank: 7Rank: 7
来 自:广东
等 级:贵宾
威 望:32
帖 子:2829
专家分:647
注 册:2006-11-30
收藏
得分:0 

你用我给你的程序获得它的句柄就不行了!


/images/2011/147787/2011051411021524.jpg" border="0" />
2007-05-06 15:46
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 

具体怎么编的呀?呵呵


If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-05-06 17:20
ioriliao
Rank: 7Rank: 7Rank: 7
来 自:广东
等 级:贵宾
威 望:32
帖 子:2829
专家分:647
注 册:2006-11-30
收藏
得分:0 

Dim meCaption As New GetWindowsText
'Dim mePos As New CursorPos
'Dim meHwnd As New windowsRfromPoint

'Private Sub Timer1_Timer()
'Text1.Text = ""
'mePos.CurrsorPos
'meHwnd.X = mePos.PosX
'meHwnd.Y = mePos.PosY

meCaption.FrmHwnd =获得的句柄
Text1.Text = meCaption.Caption


/images/2011/147787/2011051411021524.jpg" border="0" />
2007-05-06 17:39
b13690976754
Rank: 1
等 级:新手上路
威 望:2
帖 子:835
专家分:7
注 册:2006-11-9
收藏
得分:0 
恩 谢谢了

If Dir(\"alive\") <> \"\" And Dir(\"ideal\") <> \" Then Print \"strive\" End If
2007-05-06 17:52
asianhawk
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-5-7
收藏
得分:0 
太高深了……什么是句柄?!
2007-05-07 19:49
gkimjatl
Rank: 1
等 级:新手上路
帖 子:106
专家分:0
注 册:2007-3-20
收藏
得分:0 

我以前有个.这个程序例子.但是我刚才找了哈.
找不到了..我记得以前我还做个 它是用了通配符..

与*聊天中

我也记不得了.

2007-05-14 21:23
gkimjatl
Rank: 1
等 级:新手上路
帖 子:106
专家分:0
注 册:2007-3-20
收藏
得分:0 
找到了哈哈哈.. 取得任何窗口的标题

我给你贴出来.. 窗体上加载个 文本框 和 时控件 并把.interval 属性设置为1

Option Explicit

Private Const WM_GETTEXT = &HD
Private Const EM_SETPASSWORDCHAR = &HCC
Private Const EM_GETPASSWORDCHAR = &HD2
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) 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 Type POINTAPI
x As Long
y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Timer1_Timer()
Dim PassChar As String
Dim PassWord As String
Dim lpPoint As POINTAPI
Dim hMousePWindow As Long
PassWord = String(256, Chr(0))
GetCursorPos lpPoint
hMousePWindow = WindowFromPoint(lpPoint.x, lpPoint.y)
PassChar = SendMessage(hMousePWindow, EM_GETPASSWORDCHAR, 0, 0)
Call PostMessage(hMousePWindow, EM_SETPASSWORDCHAR, 0, 0)
Call Sleep(100)
Call SendMessage(hMousePWindow, WM_GETTEXT, 256, ByVal PassWord)
Call PostMessage(hMousePWindow, EM_SETPASSWORDCHAR, PassChar, 0)
Text1.Text = PassWord
End Sub

2007-05-14 21:31
gkimjatl
Rank: 1
等 级:新手上路
帖 子:106
专家分:0
注 册:2007-3-20
收藏
得分:0 
这原本是一个密码查看器...可以查看窗体上的密码.

把鼠标移动到某窗体上就可以看到了..

我刚刚试过.可以查看传奇登陆 时的密码哦.... 但是有些还是不行.查看不到..

[此贴子已经被作者于2007-5-14 22:01:00编辑过]

2007-05-14 21:32
快速回复:[求助]如何获取QQ信息窗口的句柄(如图)
数据加载中...
 
   



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

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