How would you automate logging into a website and downloading a page using Vbscript?
您如何自动登录网站并使用Vbscript下载页面?
3 个解决方案
#1
Using the MSXML.XMLHTTP-object to first do a POST to login and then add the COOKIE-headers to a GET request.
使用MSXML.XMLHTTP对象首先执行POST登录,然后将COOKIE标头添加到GET请求。
#2
As a quick and dirty solution, you could use a Shell object with SendKeys and Run as demonstrated here. These functions are quite powerful for those situations where you just can't the right object or library to use...
Well the script (given on link )works fine if you open the notepad and don't change the focus to other window. If you change the focus above script doesn't work.