2020年11月18日
摘要: C# 判断是否联网 public static class Internet { [DllImport("winInet.dll")] private static extern bool InternetGetConnectedState(ref int dwFlag, int dwReserve 阅读全文
posted @ 2020-11-18 16:45 itprobie-菜鸟程序员 阅读(237) 评论(0) 推荐(0)
摘要: 要在C#程序中触发鼠标、键盘事件必须要调用windows函数。 一、鼠标事件的触发 1.引用windows函数mouse_event /// <summary> /// 鼠标事件 /// </summary> /// <param name="flags">事件类型</param> /// <par 阅读全文
posted @ 2020-11-18 16:06 itprobie-菜鸟程序员 阅读(2266) 评论(0) 推荐(0)