window
weixin_43754633
这个作者很懒,什么都没留下…
展开
-
获取设备一些信息的方法
获取系统Ippublic enum ADDRESSFAM { IPv4, IPv6 } /// <summary> /// 获取本机IP /// </summary> /// <param name="Addfam">要获取的IP类型</param> /// <returns></returns> public string GetIP(ADDRESSF原创 2022-02-18 16:32:09 · 172 阅读 · 0 评论 -
Unity天气信息获取
从网站获取信息格式为XMl static string weatherInfoUrl= "http://wthrcdn.etouch.cn/WeatherApi?citykey=" + 101270605; static string weatherstr = GetHtml(weatherInfoUrl); // resp tempInfo = XmlDeSeralizer<resp>(weatherstr); List<string> str原创 2020-09-15 15:52:30 · 1003 阅读 · 2 评论 -
模拟真实键盘点击
[DllImport("user32.dll")] static extern void mouse_event(MouseEventFlag flags, int dx, int dy, uint data, UIntPtr extraInfo); //鼠标事件 [DllImport("user32.dll")] //强制设置鼠标坐标 //设置真实鼠标位置的方法 public static extern int SetCursorPos(int x, int...原创 2020-09-15 15:44:25 · 1152 阅读 · 0 评论