wps表单填写后在哪里看结果 C#技巧:网页表单自动填写技术(以gmail为例)
C#技巧:网页表单自动填写技术(以gmail为例)
var ie=WScript createobject( InternetExplorer Application ) var args = WScript arguments var followme= if(args length> )
{ followme+=args( ) } ie Navigate( ?continue= +followme) SynchronizeIE() var doc=ie document doc forms[ ] Email value= doc forms[ ] Passwd value= 密码写在这里 //这是因为PersistentCookie这个checkbox有时候有而有时候没有
if(doc forms[ ] PersistentCookie!=null)
{ doc forms[ ] PersistentCookie checked=false } doc forms[ ] submit() SynchronizeIE() ie Visible=true

//等待IE操作结束
function SynchronizeIE()
{ while(ie Busy)
{ WScript Sleep( ) }假定把该文件保存为googleSpecific js 存放在%windir%system 路径下 并建立如下内容的一个google bat文件同样放在%windir%system 路径下
@cls
@wscript %windir%system googleSpecific js % % % % % % % % %
然后 在命令行执行语句 go mail 就可以直接登陆到你的gmail了
同样类似的命令还有
Go notebook à便签簿Go bookmarks à网络收藏夹
lishixinzhi/Article/program/ASP/201311/21858