-
WPF窗口置顶
public class TopMostTool { public static int SW_SHOW = 5; public static int SW_NORMAL = 1; public static int SW_MAX ……
亦灵一梦 2020-04-24
0 1 -
C#捕获windows关机事件,在系统关机前做一些自己想做的事
方法1 /// <summary> /// 窗口过程的回调函数 /// </summary> /// <param name="m"></param> ……
亦灵一梦 2020-04-21
0 1 -
c#最小化指定应用程序+判断激活并最大化指定应用程序
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using Syste……
亦灵一梦 2020-04-21
0 1 -
C#将文本用语音朗读
在项目中引用System.Speech,具体方法为右键点击项目 > 添加引用 > .Net > 找到System.Speech点击确定。 下面为实现代码,将以控制台程序为例: using Syste……
亦灵一梦 2020-04-21
0 1 -
如何用chrome浏览器截获和发送POST请求
平时登录网站时,是在表单中填写用户名、密码,然后用鼠标点击提交。现在想用程序抓内网网站数据,就得知道向哪个网址POST,POST了什么? 1.参考http://www.im……
亦灵一梦 2020-04-21
0 1 -
C#检测计算机上是否安装了某些软件
引入头文件 using System.Runtime.InteropServices; 然后,输入如下代码即可 static void Main() { StringBuilder result = new StringBuilder(); fo……
亦灵一梦 2020-04-21
0 1 -
C#中操作xml文件(插入节点、修改、删除)
已知有一个XML文件(bookstore.xml)如下: <?xml version="1.0" encoding="gb2312"?> <bookstore> <book genre="fantasy" IS……
亦灵一梦 2020-04-21
0 1 -
利用 HaProxy 实现中继(中转/端口转发)加速
1.安装HaProxy # Debian/Ubuntu系统: apt-get -y install haproxy # Centos系统: yum -y install haproxy 2.配置文件 路径为:/etc/haproxy/haproxy.cfg gl……
亦灵一梦 2020-04-20
0 1 -
linux安装Seafile
安装 Seafile 服务器之前,请确认已安装以下软件 python 2.7 python-setuptools python-imaging python-ldap python-urllib3 sqlite3 Debian/Ubuntu 环境 ap……
亦灵一梦 2020-04-13
0 1 -
DD Windows 一键脚本(包含GCP谷歌云Oracle甲骨文)
说明 无限制全自动dd安装Windows 突破没有VNC,没有救援模式,内存比dd包小的限制 使用Debian Live CD中的busybox做中间媒介,经过复杂的处理 使本机的网络参数……
亦灵一梦 2019-12-17
0 1