反正不到10句代码........还是写了 添加WebBrowser到工程,复制代码,然后就看见效果了.想单独看填写后不提交的就把最后一句WebBrowser1.Document.Forms(0).All(36).Click注释掉.以下是代码.Option ExplicitPrivate Sub Form_Load() WebBrowser1.Navigate "http://mail.163.com" End SubPrivate Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If URL = "http://mail.163.com/" Then WebBrowser1.Document.Forms(0).All(9).Value = "UserName" WebBrowser1.Document.Forms(0).All(13).Value = "UserPassword" WebBrowser1.Document.Forms(0).All(36).Click
2、是提取关联文件的图标、以及exe/dll文件的图标吧。 在本论坛搜索一下吧
————————————————————————————————————
写作,虽然每个人都会查阅辞海,可,不是人人都能写出不朽的篇章的。编程,如是也。
————————————————————————————————————
写作,虽然每个人都会查阅辞海,可,不是人人都能写出不朽的篇章的。编程,如是也。
2,ExtractIcon这个API我知道,可只对可执行文件或DLL文件有用,而对于其它文件或文件夹就没有用了
添加WebBrowser到工程,复制代码,然后就看见效果了.想单独看填写后不提交的就把最后一句WebBrowser1.Document.Forms(0).All(36).Click注释掉.以下是代码.Option ExplicitPrivate Sub Form_Load()
WebBrowser1.Navigate "http://mail.163.com"
End SubPrivate Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If URL = "http://mail.163.com/" Then WebBrowser1.Document.Forms(0).All(9).Value = "UserName"
WebBrowser1.Document.Forms(0).All(13).Value = "UserPassword"
WebBrowser1.Document.Forms(0).All(36).Click
End IfEnd Sub
WebBrowser1.Document.Forms(0).All(9).Value = "UserName"
WebBrowser1.Document.Forms(0).All(13).Value = "UserPassword"
WebBrowser1.Document.Forms(0).All(36).Click
shell "explorer http://www.163.com"
然后用shellwindow获取它的Document对象,继续相同操作就可以第一句,写用户名(把UserName改成你的用户名)
第二句,写密码(UserPassword改成你的密码)
第三句,登陆邮箱