问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

VB编QQ轰炸机!简单实用的!

发布网友 发布时间:2022-04-22 01:11

我来回答

3个回答

热心网友 时间:2024-11-16 02:59

'窗口上一个List1,一个Text1,一个Timer1控件 和三个按钮Command1,Command2,Command3,分别命名为"获取","发送","连发",即可。Command1按钮式为了获得和你聊天的窗口,Command2是指你要发送的信息。Command3是开始连发的标志。
不过好像没什么意思!!!

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 Const WM_GETTEXT = &HD
Private Const EM_REPLACESEL = &HC2
Private Const BM_CLICK = &HF5
Dim Num1 As Long, QQTextHwnd As Long
Dim TempLog As Long
Dim TempMSG As String
Dim ButtonHwd As Long

Private Function GetWinText(ByVal WinHwnd As Long) As String
Dim ILen As Long
GetWinText = String(255, Chr(0))
ILen = SendMessage(WinHwnd, WM_GETTEXT, Len(GetWinText), ByVal GetWinText)
GetWinText = Left(GetWinText, ILen)
End Function
Private Sub Command1_Click()
List1.Clear
Dim hFindWnd As Long
hFindWnd = FindWindowEx(0, 0, "#32770", vbNullString)
Do While hFindWnd <> 0
If InStr(GetWinText(hFindWnd), "聊天中") > 0 Or InStr(GetWinText(hFindWnd), "交谈中") > 0 Then
List1.AddItem GetWinText(hFindWnd)
End If
hFindWnd = FindWindowEx(0, hFindWnd, "#32770", vbNullString)
Loop
If List1.ListCount = 0 Then
MsgBox "QQ消息窗体没有打开", 64, "提示"
End If

End Sub

Private Sub Command2_Click()
Dim QQHwnd As Long, RHwnd As Long
If List1.ListCount = 0 Then
MsgBox "QQ消息窗体没有打开", 64, "提示"
Exit Sub
End If

QQHwnd = FindWindow("#32770", List1.Text)

QQHwnd = FindWindowEx(QQHwnd, 0, "#32770", vbNullString)

QQTextHwnd = FindWindowEx(QQHwnd, 0, "AfxWnd42", vbNullString)

QQTextHwnd = FindWindowEx(QQHwnd, QQTextHwnd, "AfxWnd42", vbNullString)

QQTextHwnd = FindWindowEx(QQTextHwnd, 0, "RichEdit20A", vbNullString)

If QQTextHwnd = 0 Then
MsgBox "没有找到消息文本"
End If
RHwnd = FindWindowEx(QQHwnd, 0, "Button", "发送(S)")

ButtonHwd = RHwnd
TempLog = SendMessage(QQTextHwnd, EM_REPLACESEL, 0, ByVal Text1.Text)
SendMessage RHwnd, BM_CLICK, 0, 0

End Sub

Private Sub Command3_Click()
If Command3.Caption = "连发(&T)" Then
Command3.Caption = "停止(&T)"
Timer1.Enabled = True
Else
Command3.Caption = "连发(&T)"
Timer1.Enabled = False
End If
End Sub

Private Sub Form_Load()
Command1.Caption = "获取(&Q)"
Command2.Caption = "发送(&S)"
Command3.Caption = "连发(&T)"
Text1.Text = ""
Timer1.Interval = 100
Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
Num1 = Num1 + 1
TempMSG = Text1.Text & vbCrLf & "统计:第" & Num1 & "连发消息"
SendMessage QQTextHwnd, EM_REPLACESEL, 0, ByVal TempMSG
SendMessage ButtonHwd, BM_CLICK, 0, 0
End Sub

热心网友 时间:2024-11-16 03:00

sendkeys……你自己查。
不过对于这种不道德的行为表示鄙视……

热心网友 时间:2024-11-16 03:00

sendkey……你自己查。不错对于这种不道德的行为表示鄙视……
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
抖音弹幕怎么关掉?怎么关闭抖音弹幕? 惠普LaserJet P3005D是否支持B5纸的双面打印? word打印出图片总是缺一部分怎么办-word打印图片不完整怎么解决_百度... 理想one哪里产的车辆? 抚州抚州ONE在哪里? one地址在哪里? 如何在图片上写字(如何在图片上添加文字) 网商贷为什么钱没到账 高级经济师职称怎么评 高级经济师需要评审吗 qq被信息轰炸了,怎么屏蔽? 悠树QQ消息轰炸机 请发到809835213@qq.com 蘑菇QQ消息轰炸机 怎使用 我这qq聊天轰炸代码哪里错了?(帮忙改一下)谢谢! 非好友版的QQ轰炸机 qq消息轰炸机有什么作用 QQ消息轰炸器 手机主屏分辨率多少比较好 化妆师资格证考要多少钱,证件有什么作用可以讲一下吗 我想学化妆师学高级化妆师需要多少费用 化妆学校怎么考化妆师资格证 广州化妆师资格证报名费是多少钱? 化妆培训班要多少钱一个月 上海化妆师考试报名费用是多少钱啊?初级的~~ 培训一个化妆师资格证需要多少钱呢? 高级化妆师资格证书要多少钱? 学化妆教了报名费,后续化妆品费贵不? 考化妆师资格证书需要报名费或其他费用么?大约多... 考中级化妆师资格证多少钱 高级化妆师报名费 侔是什么意思? “德侔天地,道贯古今”中的&quot;侔&quot;怎么读? 古文翻译:“果有政侔召伯甘棠流勿剪之声”明崇贞汤... &quot;侔&quot;字怎么念,是什么意思 凡为论:行泽者欲杼,行山者欲侔是什么意思 “权之以眡其轻重之侔也”什么意思 量其薮以黍,以视其同也,权之,以视其轻重之侔也。... “德侔天地,道贯古今”中的&quot;侔&quot;怎么读 几侔秦汉 什么意思? 泽而杼,山而侔 什么意思?(说车赠杨诲之 柳宗元) 河间之侔汉室 什么意思 下面文言文,完成1—5题。孙侔字少述,世吴兴人。父... 手机屏幕的分辨率多少最佳? 下面这段话中的“侔不相伦”是什么意思 文言文:君侯制作侔神明,德行动天地,笔参造化,... 有部文言文我不知道叫什么,有,久之,亲友劝复举... 简兵五百逆战,众寡不侔,势小却,文言文翻译 权侔与宰相啥意思 请高人帮我译如下文言文而成白话文,谢谢 聚弗靡之财,蓄积待时而牟农夫之利。这句文言文是什...