首页
qq群发器手机版资源网(qq好友群发器)
返回

qq群发器手机版资源网(qq好友群发器)

2023-01-02 综合百科 By:佚名
最佳答案大家好,小问来为大家解答以上问题。qq群发器手机版资源网,qq好友群发器这个很多人还不知道,现在让我们一起来看看吧!1、/* 使用C#实现qq群发器的方法 窗体引用两个timer控件,来控循环发送时间 调试环境 vs200net */ using System; using System.Collections.Generic; using System.ComponentModel...

大家好,小问来为大家解答以上问题。qq群发器手机版资源网,qq好友群发器这个很多人还不知道,现在让我们一起来看看吧!

1、/* 使用C#实现qq群发器的方法 窗体引用两个timer控件,来控循环发送时间 调试环境 vs200net */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Diagnostics; namespace CrazyCoder.QQ.QQSendMessage { public partial class QQSendMessage : Form { [DllImport("user3dll ")] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user3dll ")] static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem); [DllImport("user3dll ", SetLastError = true)] public static extern IntPtr FindWindowEx(IntPtr parentHandle, int childAfter, string className, int windowTitle); [DllImport("user3dll ", EntryPoint = "SendMessage ")] static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, string lParam); [DllImport("kernel3dll ", CharSet = CharSet.Auto)] public static extern IntPtr GetModuleHandle(string lpModuleName); IntPtr hwndQQ; IntPtr hwnd1; IntPtr hwnd2; IntPtr hwnd3; IntPtr hwnd4; public QQSendMessage() { InitializeComponent(); } protected void MySendMessage() { string machinename = System.Environment.MachineName;//获得计算机名 Process[] processlist = Process.GetProcesses(machinename);//得到所有进程 foreach (Process p in processlist)//列举每个进程 { if (p.MainWindowTitle != " ")//标题是否为空,不为空执行下面代码 { if (p.MainWindowTitle.ToString().Substring(0, 1) == "与 ")//查看窗口标题第一个字是否是“与”。

2、如果是的,说明是QQ窗口 { hwndQQ = FindWindow("#32770 ", p.MainWindowTitle.ToString()); hwnd1 = GetDlgItem(hwndQQ, 0); hwnd2 = GetDlgItem(hwnd1, 0); hwnd3 = GetDlgItem(hwnd2, 894); SendMessage(hwnd3, 194, 0, this.txtInput.Text);//向QQ输入框粘贴字符,this.textBoxText是要发送的文字信息 hwnd4 = GetDlgItem(hwnd1, 1); SendMessage(hwnd4, 245, 0, Convert.ToString(0)); } } } } ///

/// 单个用户发送消息 /// /// /// protected void btnSend_Click(object sender, EventArgs e) { MySendMessage();//发送信息,向单个用户发送。

3、 } ///

/// 循环发送消息 /// /// /// protected void btnSSend_Click(object sender, EventArgs e) { this.Qtimer.Enabled = true; } /// /// 停止发送消息 /// /// /// protected void btnSStop_Click(object sender, EventArgs e) { this.Qtimer.Enabled = false; } /// /// 计时器开始发送消息 /// /// /// protected void Qtimer_Tick(object sender, EventArgs e) { this.MySendMessage(); } protected void QunSendMessage()//针对群的消息发送过程 { string machinename = System.Environment.MachineName; Process[] processlist = Process.GetProcesses(machinename); foreach (Process p in processlist) { if (p.MainWindowTitle != " ") { if (p.MainWindowTitle.ToString().Substring(p.MainWindowTitle.Length - 1, 1) == "群 ") { hwndQQ = FindWindow("#32770 ", p.MainWindowTitle.ToString()); hwnd1 = GetDlgItem(hwndQQ, 0); hwnd2 = GetDlgItem(hwnd1, 0); hwnd3 = GetDlgItem(hwnd2, 894); SendMessage(hwnd3, 194, 0, this.txtGInput.Text);//向QQ输入框粘贴字符 hwnd4 = GetDlgItem(hwnd1, 1); SendMessage(hwnd4, 245, 0, Convert.ToString(0)); } } } } /// /// 向群组发消息 /// /// /// protected void btnGXSend_Click(object sender, EventArgs e) { this.QunSendMessage();//向群发送单条信息 } /// /// 循环向群组发送消息 /// /// /// protected void btnGSend_Click(object sender, EventArgs e) { this.QGtimer.Enabled = true; } /// /// 停止向群组发送消息 /// /// /// protected void btnGStop_Click(object sender, EventArgs e) { this.QGtimer.Enabled = false; } /// /// 计时器发送消息 /// /// /// protected void QGtimer_Tick(object sender, EventArgs e) { this.QunSendMessage();//连续发送信息,多少秒发送一次,自己设定。

4、 } ///

/// 利用tencent协议,打开临时对话框 /// /// /// protected void btnQQ_Click(object sender, EventArgs e) { string s = "tencent://message/?uin= " + this.txtQQ.Text + "&Site=im.qq.com&Menu=yes ";//是对方的QQ号 比如疯狂代码和傲博知识库的qq Process.Start(s); } /// /// 初始化窗体 /// /// /// protected void QQSendMessage_Load(object sender, EventArgs e) { this.txtGms.Text = "1000 "; this.txtMs.Text = "1000 ";。

以上就是【qq群发器手机版资源网,qq好友群发器】相关内容。

猜你喜欢
李小龙传奇插曲安静(李小龙传奇插曲)

李小龙传奇插曲安静(李小龙传奇插曲)

01-04 0 阅读
豆渣饼的做法家常做法窍门(豆渣饼的家常做法)

豆渣饼的做法家常做法窍门(豆渣饼的家常做法)

05-27 0 阅读
诗史是谁的诗歌(诗史是谁)

诗史是谁的诗歌(诗史是谁)

01-04 0 阅读
I9500 Root 线刷包(i9500 root)

I9500 Root 线刷包(i9500 root)

12-31 0 阅读
原谅我不能娶你(关于原谅我不能娶你的基本详情介绍)

原谅我不能娶你(关于原谅我不能娶你的基本详情介绍)

01-02 0 阅读
报童小学(关于报童小学的基本详情介绍)

报童小学(关于报童小学的基本详情介绍)

01-02 0 阅读
热门推荐
李小龙传奇插曲安静(李小龙传奇插曲)

李小龙传奇插曲安静(李小龙传奇插曲)

01-04 0 阅读
豆渣饼的做法家常做法窍门(豆渣饼的家常做法)

豆渣饼的做法家常做法窍门(豆渣饼的家常做法)

05-27 0 阅读
诗史是谁的诗歌(诗史是谁)

诗史是谁的诗歌(诗史是谁)

01-04 0 阅读
I9500 Root 线刷包(i9500 root)

I9500 Root 线刷包(i9500 root)

12-31 0 阅读
原谅我不能娶你(关于原谅我不能娶你的基本详情介绍)

原谅我不能娶你(关于原谅我不能娶你的基本详情介绍)

01-02 0 阅读
报童小学(关于报童小学的基本详情介绍)

报童小学(关于报童小学的基本详情介绍)

01-02 0 阅读
什么头什么尾四字成语

什么头什么尾四字成语

07-22 0 阅读
会面的英语单词怎么写(会面)

会面的英语单词怎么写(会面)

01-03 0 阅读
889(关于889的基本详情介绍)

889(关于889的基本详情介绍)

01-01 0 阅读
日本纤寄蝇(关于日本纤寄蝇的简介)

日本纤寄蝇(关于日本纤寄蝇的简介)

12-31 0 阅读