登录
首页 » C# » C# 微信读取用户列表 发图文消息实例

C# 微信读取用户列表 发图文消息实例

于 2014-04-19 发布
0 218
下载积分: 1 下载次数: 0

代码说明:

C# 微信读取用户列表 发图文消息实例

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 通讯录管理系统简单实现
    【实例简介】通讯录管理系统简单实现  编写通讯录管理程序。定义一个Friend类,包括name(姓名)、sex(性别)、age(年龄)、phone(电话)、mail(邮箱)、QQ(QQ号码)、company(单位)等属性和对这些属性的操作函数,用你自己的真实信息和你的朋友们的信息构造对象数组,实现通讯录列表、查询、修改、添加、删除、保存、退出等功能。   要求:每个成员对象包含 name(姓名)、sex(性别)、age(年龄)、phone(电话)、mail(邮箱)、QQ(QQ号码)、company(单位)等属性 和对这些属性的操作函数,程序控制采用多级菜单,在功能展示界面,按照功能代码选择测试相应的功能。
    2021-12-14 00:45:35下载
    积分:1
  • 自动登录qq空间,获取最近访客列表.
    自动登录qq空间,获取最近访客列表.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { Timer terAutologin = new Timer(); public Form1() { InitializeComponent(); terAutologin.Enabled = true; terAutologin.Interval = 3 * 1000; terAutologin.Tick = ter_Tick; } void ter_Tick(object sender, EventArgs e) { if(wb1.Document==null) { return; } HtmlElement dialog_content_1 = wb1.Document.GetElementById("dialog_content_1"); if (dialog_content_1 == null) { return; } var frame = wb1.Document.Window.Frames[0]; if (frame==null) { return; } if (frame.Document==null) { return; } // iframe HtmlElement u = frame.Document.GetElementById("u"); u.InnerText = "171586098"; HtmlElement p = frame.Document.GetElementById("p"); p.InnerText = "*************"; p.SetAttribute("value", "********"); HtmlElement login_button = frame.Document.GetElementById("login_button"); login_button.InvokeMember("click"); terAutologin.Stop(); } private void Form1_Load(object sender, EventArgs e) { ssl1.Text = string.Empty; txtUrl.Text = "http://user.qzone.qq.com/14371939"; wb1.ScriptErrorsSuppressed = true; wb1.Navigate("http://user.qzone.qq.com/14371939/main"); } private void btnGO_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtUrl.Text)) { wb1.Navigate(txtUrl.Text); ssl1.Text = txtUrl.Text " Navigated"; } } private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Url.ToString()); // http://g.cnc.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=4371939&type=1&mask=3&rd=0.7801240284461528&_=1397644130601&g_tk=9281770 ssl1.Text = e.Url.ToString() " Completed"; tryRead(); } private void btnTest_Click(object sender, EventArgs e) { tryRead(); } private void tryRead() { if (wb1.Document == null) { return; } HtmlElement pagediv = wb1.Document.GetElementById("visitor_list_page_con"); if (pagediv==null) { return; } //若分页内容存在,则表示已经加载过了. if(pagediv.Children.Count>0) { handlerAbc(null,null); return; } //模拟点击 "最近访客" var aa = pagediv.Parent.Parent.FirstChild.Children[2]; aa.InvokeMember("click"); //给访问列表的容器绑定一个事件...回调时就能获取到. HtmlElement guestlist = pagediv.Parent.FirstChild; //ul.RaiseEvent guestlist.AttachEventHandler("onpropertychange", new EventHandler(handlerAbc)); } private void handlerAbc(Object sender, EventArgs e) { HtmlElement div = wb1.Document.GetElementById("visitor_list_page_con"); HtmlElement guestlist = div.Parent.FirstChild; if (guestlist.InnerHtml.IndexOf("QZONE.FrontPage.showLoginBox") > -1) { HtmlElement alogin = guestlist.GetElementsByTagName("a")[0]; alogin.InvokeMember("click"); // 使用定时器.检测登录窗口的出现.. terAutologin.Start(); return; } else { System.Text.StringBuilder sb = new StringBuilder(); // 取回里面的内容? foreach (HtmlElement li in guestlist.Children) { string qq = li.GetAttribute("uin"); string visitname = li.Children[1].FirstChild.InnerText; string visittime = li.Children[1].Children[1].InnerText; sb.AppendLine(qq visitname visittime); } MessageBox.Show(sb.ToString()); } } }}
    2014-04-18下载
    积分:1
  • 正则表达式调试工具
    正则表达式调试工具
    2014-07-30下载
    积分:1
  • wpf 抽奖 实例源码下载
    wpf 抽奖 实例源码下载
    2015-01-19下载
    积分:1
  • C# 抓取网页源代码并提取网页中的连接地址(HtmlAgilityPack)
    一个简单的网络爬虫  示例
    2020-06-17下载
    积分:1
  • Log4net 常用类Logger 示例源码
    Log4net 常用类Logger 示例源码
    2014-10-16下载
    积分:1
  • C# 五子棋游戏(单机版(人机对战)+网络版)
    C# 五子棋游戏(单机版(人机对战)+网络版)
    2019-10-16下载
    积分:1
  • asp.net网上多媒体音乐商店的源代码(含ppt文档以及数据库)
    数据库应用系统的实例源代码和ppt,一个B/S体系结构的数据库应用系统的开发,要完成后台服务器上数据库的建立与维护以及面向前端浏览器用户的Web应用程序开发 两大部分的任务。对于前者要求建立起尽量满足一致性、完整性、安全性要求的数据库,而对于后者则要求应用程序符合功能完备、操作简便、界面友好等特点。
    2019-12-04下载
    积分:1
  • C++遗传算法 示例代码
    C++遗传算法 示例代码
    2016-05-21下载
    积分:1
  • 使用EPPlus.Core导入导出excel
    使用EPPlus.Core导入导出excel
    2021-05-07下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载