資源簡介
C# 實現自動獲取QQ群成員 可導出到txt文本 支持郵箱,QQ號碼

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
//
using?System.Threading;
using?System.Windows.Forms;
namespace?獲取群成員QQ
{
????class?Date_Work
????{
????????public?static?int?Qunnum?=?0;
????????public?static?int?QQnnum?=?0;
????????public?static?void?delayTime(double?secend)
????????{
????????????DateTime?tempTime?=?DateTime.Now;
????????????while?(tempTime.AddSeconds(secend).CompareTo(DateTime.Now)?>?0)
????????????????Application.DoEvents();
????????}
????????public?static?void?Get_Qunnum(byte[]?byteArrayListView?Lvw_qun)
????????{
????????????byte[]?array?=?new?byte[10];
???????????
????????????string?qunnum?=?““;
????????????string?qunname?=?““;
????????????int?b?=?0;
?????????
????????????for?(int?i?=?0;?i?????????????{
????????????????if?(byteArray[i]?==?‘g‘?&&?byteArray[i?+?1]?==?‘r‘?&&?byteArray[i?+?2]?==?‘o‘?&&?byteArray[i?+?3]?==?‘u‘?&&?byteArray[i?+?4]?==?‘p‘?&&?byteArray[i?+?5]?==?‘s‘?&&?byteArray[i?+?7]?==?‘l‘?&&?byteArray[i?+?8]?==?‘i‘?&&?byteArray[i?+?9]?==?‘s‘?&&?byteArray[i?+?10]?==?‘t‘)
????????????????{
????????????????????for?(int?n?=?i?+?11;?n?????????????????????{
????????????????????????if?(byteArray[n]?==?‘-‘?&&?byteArray[n?+?1]?==?‘g‘?&&?byteArray[n?+?2]?==?‘r‘?&&?byteArray[n?+?3]?==?‘o‘?&&?byteArray[n?+?4]?==?‘u‘?&&?byteArray[n?+?5]?==?‘p‘?&&?byteArray[n?+?6]?==?‘i‘?&&?byteArray[n?+?7]?==?‘d‘?&&?byteArray[n?+?8]?==?‘=‘)
????????????????????????{
????????????????????????????b?=?0;
????????????????????????????qunnum?=?““;
????????????????????????????Qunnum++;
????????????????????????????int?cnum?=?0;
????????????????????????????for?(int?j?=?n?+?10;?byteArray[j]?!=?‘“‘;?j++?b++)//獲取群號嗎
????????????????????????????{
????????????????????????????????array[b]?=?byteArray[j];
????????????????????????????????qunnum?+=?array[b]?-?48;
????????????????????????????????cnum?=?j?+?1;
????????????????????????????}
????????????????????????????byte[]?name?=?new?byte[40];
????????????????????????????b?=?0;
????????????????????????????for?(int?j?=?cnum?+?24;?byteArray[j]?!=?‘<‘;?j++?b++)//獲取群名
????????????????????????????{
????????????????????????????????if?(byteArray[j]?==?‘<‘)
????????????????????????????????????break;
????????????????????????????????name[b]?=?byteArray[j];
????????????????????????????}
????????????????????????????qunname?=?System.Text.Encoding.Default.GetString(name);
????????????????????????????ListViewItem?myitem?=?new?ListViewItem(Qunnum.ToString());
????????????????????????????myitem.SubItems.Add(qunnum);
????????????????????????????myitem.SubItems.Add(qunname);
????????????????????????????Lvw_qun.Items.Add(myitem);
????????????????????????????//??MessageBox.Show(qunnum?+?“???“?+?qunname);
????????????????????????}
????????????????????}
????????????????}
????????????}??
????????
????????}
???????
????????public?static?void?Get_QQnum(WebBrowser?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????144??2014-06-01?10:02??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\App.config
?????文件?????115542??2014-06-17?14:30??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\Log.txt
?????文件??????48053??2014-06-17?14:30??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\QQ.txt
?????文件??????81127??2014-06-17?14:30??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\QQEmail.txt
?????文件??????41472??2014-07-21?18:44??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.exe
?????文件????????144??2014-06-01?10:02??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.exe.config
?????文件??????38400??2014-07-21?18:44??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.pdb
?????文件??????11600??2014-07-21?18:45??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.vshost.exe
?????文件????????144??2014-06-01?10:02??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.vshost.exe.config
?????文件????????490??2012-06-02?22:34??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\bin\Debug\獲取群成員QQ.vshost.exe.manifest
?????文件???????5253??2014-06-06?19:40??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Date_Work.cs
?????文件???????5349??2014-06-17?14:29??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Form1.cs
?????文件??????12882??2014-06-06?23:11??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Form1.Designer.cs
?????文件??????43003??2014-06-06?23:11??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Form1.resx
?????文件???????5420??2014-05-31?18:27??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6501??2014-07-21?18:44??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????268??2014-05-31?11:24??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件????????634??2014-05-31?11:24??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件???????2164??2014-07-21?18:45??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.csproj.FileListAbsolute.txt
?????文件???????1033??2014-06-06?23:11??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.csproj.GenerateResource.Cache
?????文件???????9174??2014-05-31?18:28??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.csprojResolveAssemblyReference.cache
?????文件??????41472??2014-07-21?18:44??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.exe
?????文件??????25028??2014-06-06?23:11??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.Form1.resources
?????文件??????38400??2014-07-21?18:44??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.pdb
?????文件????????180??2014-06-01?10:02??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\obj\x86\Debug\獲取群成員QQ.Properties.Resources.resources
?????文件????????498??2014-05-31?11:13??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Program.cs
?????文件???????1384??2014-05-31?11:13??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Properties\AssemblyInfo.cs
?????文件???????2882??2014-05-31?11:13??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Properties\Resources.Designer.cs
?????文件???????5612??2014-05-31?11:13??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Properties\Resources.resx
?????文件???????1100??2014-05-31?11:13??獲取群成員QQ\獲取群成員QQ\獲取群成員QQ\Properties\Settings.Designer.cs
............此處省略18個文件信息
- 上一篇:xm
l文件與WPF中TreeView、Menu交互 - 下一篇:gamma函數C#
評論
共有 條評論