DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS進階教程 >> 網頁表單自動填寫技術(gmail為例)
網頁表單自動填寫技術(gmail為例)
編輯:CSS進階教程     

以下是引用片段:
  var ie=WScript.createobject("InternetExplorer.Application");
  var args = WScript.arguments;
  var followme=http://www.google.com/;
  if(args.length>0)
  {
  followme+=args(0);
  }
  ie.Navigate("https://www.google.com/accounts/Login?continue="+followme);
  SynchronizeIE();
  var doc=ie.document;
  doc.forms[0].Email.value="[email protected]";
  doc.forms[0].Passwd.value="密碼寫在這裡";
  //這是因為PersistentCookie這個checkbox有時候有而有時候沒有。
  if(doc.forms[0].PersistentCookie!=null)
  {
  doc.forms[0].PersistentCookie.checked=false;
  }
  doc.forms[0].submit();
  SynchronizeIE();
  ie.Visible=true;
  //等待IE操作結束。
  function SynchronizeIE()
  {
  while(ie.Busy)
  {
  WScript.Sleep(100);
  }
  }

  假定把該文件保存為googleSpecific.js,存放在%windir%/system32路徑下,並建立如下內容的一個google.bat文件同樣放在%windir%/system32路徑下。

  @cls

  @wscript %windir%/system32/googleSpecific.js %1 %2 %3 %4 %5 %6 %7 %8 %9

  然後,在命令行執行語句:go mail,就可以直接登陸到你的gmail了。

  同樣類似的命令還有:

  Go notebook à便簽簿

  http://flappy.cnblogs.com/archive/2006/07/09/446673.HTML

  Go bookmarks à網絡收藏夾

  如果直接輸入go而不接任何內容的話,則會以你的名義登陸到google.com首頁。另外,googleSpecific.js最好用screnc.exe進行加密,加密後的文件格式是.jse,但即使是這樣也不能保證文件中的密碼不被別人看到(scrdec可以進行解密)。更好的保密手段還請各位多提意見。


  

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved