C# 实现微信PC版通讯录自动化群发小工具 支持多条图片与文字消息 支持快捷键

C#实现微信消息自动发送 FlaUI.UIA3实现微信或者QQ消息的自动群发 阅读详情

成品截图

在这里插入图片描述

使用自动化库

在这里插入图片描述


发送逻辑*sender.cs*

using FlaUI.Core.AutomationElements;
using FlaUI.UIA3;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsInput;
using WindowsInput.Native;

namespace WechatSend
{

    public class WindowUtil
    {
        static readonly IntPtr HWND_TOPMOST = new IntPtr(-1);
        static readonly IntPtr HWND_NOTOPMOST = new IntPtr(-2);
        const UInt32 SWP_NOSIZE = 0x0001;
        const UInt32 SWP_NOMOVE = 0x0002;
        const UInt32 SWP_SHOWWINDOW = 0x0040;

        [DllImport("user32.dll")]
        static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);

        public static bool SetWindowTop(IntPtr hWnd, bool isTop)
        {
            if (isTop)
            {
                return SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
            }
            else
            {
                return SetWindowPos(hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
            }
        }

    }
    public class Sender
    {
        static int ScreenHeight = Screen.PrimaryScreen.Bounds.Height;
        static int ScreenWidth = Screen.PrimaryScreen.Bounds.Width;

        static FlaUI.Core.AutomationElements.Window wechatWindow;
        static FlaUI.Core.AutomationElements.ListBox listBox;
        static FlaUI.Core.Application app;
        static int scrollDelta = 3;
        static Process attachWechatProcess;
        static string content = "";
        static bool EndingFlag = false;

        static volatile bool InterruptFlag = false;

        static HashSet<String> wechatScanHistory = new HashSet<String>();
        static InputSimulator sim = new InputSimulator();

        public static String[] SplitFlag = { "\n----------------\n" };

        public static void SendImage(string path)
        {

            CS.RunInMainContext(() =>
            {
                var img = Image.FromFile(path);
                Clipboard.SetImage(img);
            });
            Thread.Sleep(1500);
            sim.Keyboard.KeyDown(VirtualKeyCode.CONTROL);
            sim.Keyboard.KeyPress(VirtualKeyCode.VK_V);
            sim.Keyboard.KeyUp(VirtualKeyCode.CONTROL);
            SubmitSend();
        }

        public static void SendText(string text)
        {
            wechatWindow.FindFirstDescendant(cf => cf.ByName("输入"))?.AsTextBox().Enter(text);
            Thread.Sleep(3000);
            SubmitSend();
        }

        public static void EnterEditView()
        {
            wechatWindow.FindFirstDescendant(cf => cf.ByName("发消息"))?.Click();
        }

        public static void BackContactView()
        {
            wechatWindow.FindFirstDescendant(cf => cf.ByName("通讯录"))?.Click();
        }

        public static void SubmitSend()
        {
            Thread.Sleep(600);
            wechatWindow.FindFirstDescendant(cf => cf.ByName("sendBtn"))?.Click();
        }

        public static bool HandleInterval(string text)
        {
            if (text.StartsWith("间隔") && text.EndsWith("秒"))
            {
                var retPattern = new Regex(@"间隔(\d+)秒", RegexOptions.Compiled);
                string s = retPattern.Match(text).Groups[1].Captures[0].Value;
                if (int.Parse(s) > 0)
                {
                    Thread.Sleep(int.Parse(s) * 1000);
                    Debug.WriteLine(@"等待间隔秒数:" + int.Parse(s));
                    return true;
                }
            }
            return false;
        }

        public static void Scan()
        {
            // 扫描
            foreach (ListBoxItem item in listBox.Items)
            {
                if (InterruptFlag)
                {
                    Debug.WriteLine("中止发送==");
                    break;
                }
                else
                {
                    Debug.WriteLine("继续发送==");
                }

                if (item.Name.Length == 0 || item.Name == "新的朋友" || item.Name == "公众号" || item.Name == "微信团队" || item.Name == "文件传输助手") continue;
                item.Click();
                Thread.Sleep(2000);
                var childs = wechatWindow.FindFirstDescendant(cf => cf.ByName("微信号:"))?.Parent.FindAllChildren();
                var wechatNumItem = childs[childs.Length - 1];
                var wechatNumText = wechatNumItem.Name;
                if (wechatScanHistory.Contains(wechatNumText))
                {
                    if (EndingFlag)
                    {
                        continue;
                    }
                    break;
                }
                else
                {
                    scrollDelta = 3;
                    wechatScanHistory.Add(wechatNumText);
                    // 执行发送
                    Debug.WriteLine(item.Name + "\t" + wechatNumText);
                    EnterEditView();
                    SplitMsgContent(content);
                    Thread.Sleep(1500);
                    BackContactView();
                    Thread.Sleep(1000);
                }
            }

            if (EndingFlag)
            {
                EndingFlag = false;
            }
        }

        public static void InitApp()
        {
            var wechatProcess = Process.GetProcessesByName("WeChat");
            if (wechatProcess.Length != 1)
            {
                MessageBox.Show("未找到微信或者微信在多开环境运行 " + wechatProcess.Length, "提示",
                     MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            Debug.WriteLine($"寻找进程:{wechatProcess.Length}");
            attachWechatProcess = wechatProcess.First();
            app = FlaUI.Core.Application.Attach(attachWechatProcess.Id);
        }

        public static void NotifyStop()
        {
            InterruptFlag = true;
        }


        public static void StartSend(string richText)
        {
            wechatScanHistory.Clear();
            content = richText;
            InitApp();
            WindowUtil.SetWindowTop(attachWechatProcess.MainWindowHandle, true);
            InterruptFlag = false;
            using (var automation = new UIA3Automation())
            {
                wechatWindow = app.GetMainWindow(automation);
                wechatWindow.FocusNative();
                Debug.WriteLine("附加到进程:" + wechatWindow.Title);
                BackContactView();
                Thread.Sleep(2000);
                var i = wechatWindow.FindFirstDescendant(cf => cf.ByName("联系人"));
                i.Click();
                i.FocusNative();

                // kApp.MouseMove(i.BoundingRectangle.X + 50, i.BoundingRectangle.Y + 100);
                var x = i.BoundingRectangle.X;
                var y = i.BoundingRectangle.Y;
                var w = i.BoundingRectangle.Width;
                var h = i.BoundingRectangle.Height;

                listBox = i.AsListBox();

                Debug.WriteLine($"Screen: {Screen.PrimaryScreen.Bounds.Height}");
                while (true)
                {
                    if (InterruptFlag) break;
                    Scan();
                    if (scrollDelta < -10)
                    {
                        EndingFlag = true;
                        // 扫描最后一列
                        Scan();
                        break;
                    }
                    else
                    {
                        if (InterruptFlag) break;
                        BackContactView();
                        Debug.WriteLine($"滑动~~~{scrollDelta}");
                        // 循环滑动,直到最上面一个微信不出现在  
                        sim.Mouse.MoveMouseTo((x + w / 2) * 65536 / ScreenWidth, (y + h / 2) * 65536 / ScreenHeight);
                        sim.Mouse.VerticalScroll(-(Math.Max(scrollDelta--, 1)));
                        Thread.Sleep(1500);
                    }
                }

            }

            CS.RunInMainContext(() =>
            {
                if (InterruptFlag)
                {
                    MessageBox.Show("执行中断", "微信群发 - 提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("执行完毕", "微信群发 - 提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            });
            WindowUtil.SetWindowTop(attachWechatProcess.MainWindowHandle, false);
            app.Dispose();
            Debug.WriteLine("-----执行结束");
        }

        public static void TestSend(string content)
        {
            InitApp();
            using (var automation = new UIA3Automation())
            {
                wechatWindow = app.GetMainWindow(automation);
                EnterEditView();
                SplitMsgContent(content);
                BackContactView();
            }
        }

        public static void SplitMsgContent(string text)
        {
            Debug.WriteLine("输入文本:" + text);
            // 处理开始与结尾的分隔符
            if (text.EndsWith(SplitFlag[0]))
            {
                text = text.Substring(0, text.Length - SplitFlag[0].Length);
            }
            if (text.StartsWith(SplitFlag[0]))
            {
                text = text.Substring(SplitFlag[0].Length);
            }
            // 分隔消息
            String[] lines = text.Split(SplitFlag, StringSplitOptions.RemoveEmptyEntries);
            foreach (string line in lines)
            {
                if (HandleInterval(line))
                {
                    continue;
                }
                if (File.Exists(line))
                {
                    Debug.WriteLine("发送图片:" + line);
                    SendImage(line);
                    continue;
                }
                Debug.WriteLine("发送文本:" + line);
                SendText(line);
            }
        }
    }
}


界面逻辑 Form1.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WechatSend
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Sender.StartSend(this.richTextBoxContent.Text);
        }

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {

        }
         
        private void Form1_Load(object sender, EventArgs e)
        {

            CS.InitMainContext(SynchronizationContext.Current);

            GlobalHotKey.RegisterHotKey("Ctrl + Shift + Q", () => {
                string text = this.richTextBoxContent.Text;
                CS.runInBackground(() =>
                {
                    Sender.StartSend(text);
                });
            });

            GlobalHotKey.RegisterHotKey("Ctrl + Shift + E", () => {
                System.Environment.Exit(0);
            });

            GlobalHotKey.RegisterHotKey("Ctrl + Shift + S", () => 
            {
                Debug.WriteLine("中断发送");
                Sender.NotifyStop();
                // Sender.SendImage(@"C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Extensions\ibefaeehajgcpooopoegkifhgecigeeg\8.0.14_0\assets\imgs\template-panel\image-scroll-box\img-scroll-1.jpg");
            });

            Debug.WriteLine($"Screen: {Screen.PrimaryScreen.Bounds.Height}x{Screen.PrimaryScreen.Bounds.Width}");
        }

        private void buttonAddImage_Click(object sender, EventArgs e)
        {

        }

        private void Form1_DragEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                e.Effect = DragDropEffects.All;
            }
            else
            {
                String[] strGetFormats = e.Data.GetFormats();
                e.Effect = DragDropEffects.None;
            }
        }

        private void Form1_DragDrop(object sender, DragEventArgs e)
        {
            string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
            foreach (string file in files)
            {
                this.richTextBoxContent.AppendText(file);
                this.richTextBoxContent.AppendText(Sender.SplitFlag[0]);
            }
        }

        private void richTextBoxContent_DoubleClick(object sender, EventArgs e)
        {
            if (!this.richTextBoxContent.Text.EndsWith("\n"))
            {
                this.richTextBoxContent.AppendText(Sender.SplitFlag[0]);
            }
        }
    }
}

快捷键注册 GlobakHotkey.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace WechatSend
{
    public class GlobalHotKey : IDisposable
    {
        /// <summary>
        /// Registers a global hotkey
        /// </summary>
        /// <param name="aKeyGesture">e.g. Alt + Shift + Control + Win + S</param>
        /// <param name="aAction">Action to be called when hotkey is pressed</param>
        /// <returns>true, if registration succeeded, otherwise false</returns>
        public static bool RegisterHotKey(string aKeyGestureString, Action aAction)
        {
            var c = new KeyGestureConverter();
            KeyGesture aKeyGesture = (KeyGesture)c.ConvertFrom(aKeyGestureString);
            return RegisterHotKey(aKeyGesture.Modifiers, aKeyGesture.Key, aAction);

        }

        public static bool RegisterHotKey(ModifierKeys aModifier, Key aKey, Action aAction)
        {
            if (aModifier == ModifierKeys.None)
            {
                throw new ArgumentException("Modifier must not be ModifierKeys.None");
            }
            if (aAction is null)
            {
                throw new ArgumentNullException(nameof(aAction));
            }

            System.Windows.Forms.Keys aVirtualKeyCode = (System.Windows.Forms.Keys)KeyInterop.VirtualKeyFromKey(aKey);
            currentID = currentID + 1;
            bool aRegistered = RegisterHotKey(window.Handle, currentID,
                                        (uint)aModifier | MOD_NOREPEAT,
                                        (uint)aVirtualKeyCode);

            if (aRegistered)
            {
                registeredHotKeys.Add(new HotKeyWithAction(aModifier, aKey, aAction));
            }
            return aRegistered;
        }

        public void Dispose()
        {
            // unregister all the registered hot keys.
            for (int i = currentID; i > 0; i--)
            {
                UnregisterHotKey(window.Handle, i);
            }

            // dispose the inner native window.
            window.Dispose();
        }

        static GlobalHotKey()
        {
            window.KeyPressed += (s, e) =>
            {
                registeredHotKeys.ForEach(x =>
                {
                    if (e.Modifier == x.Modifier && e.Key == x.Key)
                    {
                        x.Action();
                    }
                });
            };
        }

        private static readonly InvisibleWindowForMessages window = new InvisibleWindowForMessages();
        private static int currentID;
        private static uint MOD_NOREPEAT = 0x4000;
        private static List<HotKeyWithAction> registeredHotKeys = new List<HotKeyWithAction>();

        private class HotKeyWithAction
        {

            public HotKeyWithAction(ModifierKeys modifier, Key key, Action action)
            {
                Modifier = modifier;
                Key = key;
                Action = action;
            }

            public ModifierKeys Modifier { get; }
            public Key Key { get; }
            public Action Action { get; }
        }

        // Registers a hot key with Windows.
        [DllImport("user32.dll")]
        private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);
        // Unregisters the hot key with Windows.
        [DllImport("user32.dll")]
        private static extern bool UnregisterHotKey(IntPtr hWnd, int id);

        private class InvisibleWindowForMessages : System.Windows.Forms.NativeWindow, IDisposable
        {
            public InvisibleWindowForMessages()
            {
                CreateHandle(new System.Windows.Forms.CreateParams());
            }

            private static int WM_HOTKEY = 0x0312;
            protected override void WndProc(ref System.Windows.Forms.Message m)
            {
                base.WndProc(ref m);

                if (m.Msg == WM_HOTKEY)
                {
                    var aWPFKey = KeyInterop.KeyFromVirtualKey(((int)m.LParam >> 16) & 0xFFFF);
                    ModifierKeys modifier = (ModifierKeys)((int)m.LParam & 0xFFFF);
                    if (KeyPressed != null)
                    {
                        KeyPressed(this, new HotKeyPressedEventArgs(modifier, aWPFKey));
                    }
                }
            }

            public class HotKeyPressedEventArgs : EventArgs
            {
                private ModifierKeys _modifier;
                private Key _key;

                internal HotKeyPressedEventArgs(ModifierKeys modifier, Key key)
                {
                    _modifier = modifier;
                    _key = key;
                }

                public ModifierKeys Modifier
                {
                    get { return _modifier; }
                }

                public Key Key
                {
                    get { return _key; }
                }
            }


            public event EventHandler<HotKeyPressedEventArgs> KeyPressed;

            #region IDisposable Members

            public void Dispose()
            {
                this.DestroyHandle();
            }

            #endregion
        }
    }
}
C#实现微信自动发送消息 搞定pywinauto微信自动发送消息后,看到是使用的UIA,然后看到FlaUI。好吧,C#也能做,然后就开干了。具体代码如下: class Program { [STAThread] static void Main(string[] args) { Process[] processes= Process.GetProcessesByName("WeChat"); if(processes.C 阅读详情

相关推荐

C# 企业微信:开启消息接受&接收消息&推送消息

前言:微信吧!接触的人都会100%各种踩坑,就算同样东西去年做过,今年来一样踩坑,因为太多你稍微不记得一点点的细节就能让你研究N久。为此,我要把这个过程详细的记录下来。 一、开启消息接受 1.拿到企业corpId,应用的Token,EncodingAESKey 2.这界面先别关,拿到 Token,EncodingAESKey后,建个接口 鉴于公司系统的架构类型,我这里创建的是一...

葉飞纷飞的博客 6508

C# 控制微信客户端自动发送消息

C# 控制微信客户端自动发送消息

weixin_42199478的博客 2964

最新微信hook二次开发C#Demo之发送消息代码

用【江南鹤微信hook二次开发c#源代码】发送消息: 消息类型有以下几种 1 文本,2 图片,3 表情(gif),4 视频,5 文件,6 名片,7 位置,8 小程序,9 链接 接收方有3种 1 好友,2 群,3 公众号 hook程序都已实现上述类型的消息,c#代码直接调用即可 下面是各种消息发送的代码 第一步 初始化服务 var HP_Server = new TcpPackSe...

weixinhook的博客 1991

(7)定时群发微信图文消息-微信UI自动化(.Net+C#)

【代码】(7)微信UI自动化-自动发送消息给指定联系人(C#)(.Net)

SOF学习拒绝刷屏 2280

C#实现微信自动回复机器人和微信支付

微信自动回复机器人是一种能够自动回复用户消息的程序,它可以为用户提供便捷的服务。本文将介绍如何使用C#来实现微信自动回复机器人。

Documentlv的博客 2649

C#实现微信公众号群发消息(解决一天只能发一次的限制)实例分享

经过几天研究网上的代码和谢灿大神的帮忙,今天终于用C#实现了微信公众号群发消息,现在分享一下

C# .NET基于FlaUIAutomation开发PC端微信机器人#2

Hello 朋友们大家好,我们接着上一节:C# .NET基于FlaUIAutomation开发PC端微信机器人#1继续我们的微信机器人开发,本节要实现的内容是获取当前聊天对象的聊天记录。 首先,必不可少的安装相关库以及初始化FlaUIAutomation本节将不在重复,不清楚的朋友烦请移步上一节文章,话不多说,直接上代码: 运行代码,查看效果: 代码的的具体作用,我已经注释的非常清楚,最后需要再次强调:基于UI自动化库开发的重点是要对自动化目标程序的元素树结

martinzuo的博客 1701

Python 实现 傅里叶级数 对 函数拟合 并绘图

好记性不如烂笔头 目录傅里叶级数变换原理代码实现效果图 傅里叶级数变换原理 原理:待续… 傅里叶级数变换公式: 代码实现 本次实现的是符号函数的拟合: 注:若要实现其他函数的拟合,修改程序中 fx 的表达式即可 """ 傅里叶级数""" import sympy as sym import numpy as np import matplotlib.pyplot as plt N = 8 # 拟合的阶数 L = sym.pi # 周期的一半 n, x = sym.symbols('n x')

qq_41676952的博客 1万+

C# 自动点击、发送消息

一个简单的实现版本,没有去Hook键鼠等操作,事先录制好操作步骤(将鼠标移动到需要操作的位置,按下热键执行相应动作),点击运行即可。 主要还是用windows api来实现,模拟点击、右击、双击、发送文本等。 代码可能略长一点,下面发下关键代码 主要的思路就是操作热键的时候,将操作类型以及坐标记录到一个List中,然后利用Windows Api循环执行List中的数据 实现功能: 模拟鼠标点击、文本输入 开发环境: 开发工具: Visual Studio 2013 .NET Fra

qq_27410185的博客 2890

本地化搭建DeepSeek+RAGFlow,构建个人知识库

本地化搭建DeepSeek+RAGFlow,构建个人知识库。至少32G以上内存、500G以上空余磁盘空间。

gogospecter的专栏 7438

RC电路(一):微分|积分

的取值不同,会导致输出波形和输入波形之间的关系也不同,由此也会产生不同的应用。输出为0,随着电容充满电,运放-输入端得到的分压为正最大值,可等效成一个电压源,且电压不可突变,此时电流反向为最大值,开始充电时的容抗为0,电压不可突变则电压差为0,运放。开始充电时的容抗为0,电压不可突变则电压差为0,运放。输入端得到的分压也不可突变,随着电容放完电,于是。,因电容上电压不能突变(来不及充电,相当于短路,由上分析可得积分运算电路中,输出为运放的负最大峰值,随着电容充满电,输出为运放的正最大峰值,随着电容放完电,

既有随处可栖的江湖,也有追风逐梦的骁勇! 1万+

(1)开启探索微信自动化之路-微信UI自动化(.Net+C#)

微信自动化

SOF学习拒绝刷屏 1万+

linux离线安装nginx

linux离线安装nginx

zhang_130914036的博客 9358

C#微信公众号发送消息

微信公众号发消息

goodyatou的专栏 1547

在WSL2中配置代理(Windows)

通过按照上述步骤在WSL2中配置代理,我们可以轻松地在Windows子系统Linux中使用代理服务器访问互联网。请确保提供正确的代理服务器地址和端口号,并根据实际情况进行修改。在WSL2中使用代理是一个常见的需求,它允许我们在Windows子系统Linux中通过代理服务器访问互联网。本文将详细介绍如何在WSL2中配置代理,并提供相应的源代码示例。如果返回的IP地址与代理服务器所在地不同,说明代理正常工作。希望本文能对你有所帮助!如有其他问题,请随时向我提问。替换为实际的代理服务器地址和端口号。

FcUnity的博客 4361

YOLOv8改进-bifpn

跨尺度连接通过添加一个跳跃连接和双向路径来实现,自此实现了加权融合和双向跨尺度连接。该结构是加权且双向连接的,即自顶向下和自底向上结构,通过构造双向通道实现跨尺度连接,将特征提取网络中的特征直接与自下而上路径中的相对大小特征融合,保留了更浅的语义信息,而不会丢失太多的深层语义信息。传统的特征融合时将尺度不同的特征图以相同权重进行加权,但是当输入的特征图分辨率不同时,以相同的权重进行加权对输出的特征图不平等。所以BiFPN根据不同输入特征的重要性设置不同的权重,同时反复采用这种结构来加强特征融合。

weixin_45303602的博客 8140

【微信自动化】使用c#实现微信自动化

本文由网友投稿作者:陈显达原文标题:【微信自动化】使用c#实现微信自动化原文链接:https://www.cnblogs.com/1996-Chinese-Chen/p/17663064.html引言上个月,在一个群里摸鱼划水空度日,看到了一个老哥分享的一个微信自动化的一个类库,便下载了他的Demo,其本意就是模拟鼠标来操作UI,实现UI自动化;然后自己在瞎琢磨研究,写了一个简单的例子,用来获取好...

dotNET跨平台 1340

PSM倾向性评分分析介绍、spss进行倾向性评分分析示例

PSM倾向性评分分析介绍、spss进行倾向性评分分析示例

statistics+insight+vista+power 1486

关于C# 向TIM或者QQ自动发送中文消息【微信也是可用的】 附测试GIF中微信可用的 全新修订...

在上一篇文章的代码 对于微信已失效 重新更新一边 效果图: 源代码 using System; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; namespace TestForWechat { class Program ...

weixin_30471065的博客 779

10.Labview局部变量、全局变量、引用、属性节点、调用节点用法理解及精讲

本文的结构还是首先教大家明确概念问题,然后深入理解概念并学会使用,最后在理论基础掌握的基础上,通过实例来强化大家的理解。本文依旧是**先理论后实践**的教学方式,欢迎留言或私聊提问。

关注我,更多技术问题欢迎私聊~ 1万+

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

C# .NET基于FlaUIAutomation开发PC端微信机器人#1

Hello 朋友们大家好,我是J3ME,最近正在开发一个微信机器人项目,在开发之前尝试找了许多资料,结果发现针对C# .NET开发微信机器人的项目,不论是开源还是闭源的都算是比较少,(甚至是其他语言,目前开源能用的也是比较少),目前主流的两种开发思路:一是HOOK,二是Web协议(包括统信OS)。这两种开发思路缺点都比较明显,那么今天我来给大家分享一种比较特别的开发思路,基于UIAutomation(UI自动化)来实现PC端微信机器人的开发。准备好了吗,让我们开始吧!

martinzuo的博客 4032

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

用c#开发微信 (4) 基于Senparc.Weixin框架的接收事件推送处理 (源码下载)

本文讲述使用Senparc.Weixin框架来快速处理各种接收事件推送。这里的消息指的是传统的微信公众平台消息交互,微信用户向公众号发送消息后,公众号回复消息给微信用户。包括以下类型: 1 subscribe/unsubscribe: 关注/取消关注事件 2 scan: 扫描带参数二维码事件 3 location: 上报地理位置事件 4 click: 自定义菜单事件 ...

weixin_34037173的博客 452

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

实例:用C#.NET手把手教你做微信公众号开发(17)--公众号主动给粉丝发信息之模板消息

模板消息,就是公众号对微信用户的一种免费短信,用好了事半功倍。

持之以恒 9156

C#微信公众平台开发—高级群发接口

1、通过微信接口上传图文消息素材时,Json中的图片不是url而是media_id,如何通过微信接口上传图片并获取图片的media_id?取ImgUrl字段数据,通过MapPath方法获取图片在服务器上的物理地址,用FileStream类读取图片,并上传给微信。我把数据存储在数据库中,ImgUrl字段是图片在服务器上的相对路径(这里的服务器是自己的服务器,不是微信的哦)。遍历每条图文数据,分别请求微信接口,上传图片,获取media_id。一个图文消息由若干条图文组成,每条图文有标题、内容、链接、图片等。

风清扬的专栏 690
上一篇: Magisk Yyds.Msu定制方案 原理 ROOT隐藏 风控绕过
下一篇: 安卓ai自动化脚本 Yyds.Auto实现 示例 纯ai图像识别自动点击脚本
专注Android黑科技
博客等级 码龄11年 249粉丝 59原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址