文章分类 -  WinForm

摘要:1。获取局域网ipIPAddress ipAddr = Dns.Resolve(Dns.GetHostName()).AddressList[0];//获得当前IP地址string ip=ipAddr.ToString() ;2。获取公网ip private static string GetIP(){ string tempip = ""; try { WebRequest wr = WebRequest.Create("http://www.ip138.com/ips138.asp"); Stream s = wr.GetResponse(... 阅读全文
posted @ 2011-02-26 21:03 事理 阅读(25237) 评论(11) 推荐(2) 编辑
摘要:1。游戏自动登录,MousePosition.X获得系统鼠标位置的X坐标 第一种方法:指定文本框的坐标,适用于窗口最大化按钮不能用的,如QQ游戏 int x=500; int y=300;SendKeys.SendWait("274040246"); //输入游戏IDSetCursorPos(x, y); //设置鼠标位置,x,y为账号框相对屏幕的位置mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); System.Threading.Threa 阅读全文
posted @ 2011-01-20 21:27 事理 阅读(5642) 评论(1) 推荐(0) 编辑
摘要:1.向iis注册asp.net:aspnet_regiis -i //安装asp.net<2.0.50.727> 安装与 Aspnet_regiis.exe 关联的 ASP.NET 版本,并更新 IIS 元数据库根目录和根目录下的脚本映射。只更新使用早期 ASP.NET 版本的应用程序的脚本映射。使 阅读全文
posted @ 2011-01-20 21:01 事理 阅读(746) 评论(0) 推荐(0) 编辑
摘要:1.第一种方法,api实现 如:http://www.cnblogs.com/icd/archive/2009/03/23/1419868.html缺点:代码繁琐,adsl账号和密码在程序运行之前就要在网上邻居中宽带连接中绑定。2.简单方法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.System) 阅读全文
posted @ 2011-01-20 20:44 事理 阅读(6463) 评论(4) 推荐(2) 编辑
摘要:1.qq2008自动登录Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->class QQ2008AutoLogin{publicstaticvoid A... 阅读全文
posted @ 2011-01-20 19:49 事理 阅读(5023) 评论(8) 推荐(1) 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using ... 阅读全文
posted @ 2011-01-20 19:03 事理 阅读(2670) 评论(1) 推荐(0) 编辑