[+] 通用微信多开工具的集成

This commit is contained in:
huiyadanli
2020-01-05 01:47:15 +08:00
parent 349e9bf18e
commit 05191db39e
6 changed files with 120 additions and 57 deletions

View File

@@ -2,6 +2,7 @@
using RevokeMsgPatcher.Modifier;
using RevokeMsgPatcher.Utils;
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Web.Script.Serialization;
@@ -274,7 +275,7 @@ namespace RevokeMsgPatcher
DialogResult dr = MessageBox.Show(tips, "当前支持防撤回的版本", MessageBoxButtons.OKCancel);
if (dr == DialogResult.OK && needUpdate)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/releases");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/releases");
}
}
@@ -352,27 +353,27 @@ namespace RevokeMsgPatcher
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki/%E7%89%88%E6%9C%AC%E6%94%AF%E6%8C%81");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki/%E7%89%88%E6%9C%AC%E6%94%AF%E6%8C%81");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%8E%9F%E7%90%86");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki#%E5%8E%9F%E7%90%86");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki");
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/wiki");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
@@ -384,5 +385,24 @@ namespace RevokeMsgPatcher
{
MessageBox.Show("作者正在考虑是否要加上这个功能,该功能可能有安全风险,暂时不加入", "手动输入补丁信息");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
string path = Path.Combine(Application.StartupPath, "RevokeMsgPatcher.MultiInstance.exe");
if (File.Exists(path))
{
Process p = new Process();
p.StartInfo.FileName = path;
p.Start();
}
else
{
DialogResult dr = MessageBox.Show($"未在同级目录下找到“微信通用多开工具”,位置:{path},点击“确定”访问微信通用多开工具的主页,你可以在主页上下载到这个工具。", "未找到程序", MessageBoxButtons.OKCancel);
if (dr == DialogResult.OK)
{
Process.Start("https://github.com/huiyadanli/RevokeMsgPatcher/tree/master/RevokeMsgPatcher.MultiInstance");
}
}
}
}
}