Web page Form automatic filling technology (Gmail as an example)

Source: Internet
Author: User
Tags command line
Web page

The following is a reference fragment:
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= "lixianmin@gmail.com";
Doc.forms[0]. Passwd.value= "The password is written here";
This is because Persistentcookie this checkbox sometimes and sometimes not.
if (doc.forms[0). Persistentcookie!=null)
Doc.forms[0]. Persistentcookie.checked=false;
Doc.forms[0].submit ();
Synchronizeie ();
Ie. Visible=true;
Wait for the IE operation to end.
function Synchronizeie ()
while (ie. BUSY)
Wscript.Sleep (100);

Suppose that the file is saved as googlespecific.js, stored under the%windir%\system32 path, and a Google.bat file with the following contents is also placed under the%windir%\system32 path.



Then, execute the statement at the command line: Go mail, you can login directly to your gmail.

Similar commands are also:

Go Notebookà Memo Book


Go Bookmarksà Network Favorites

If you enter the go without any content, it will be in your name landing on the Google.com home page. In addition, Googlespecific.js is best to encrypt with Screnc.exe, encrypted file format is. JSE, but even this does not guarantee that the password in the file is not seen by others (Scrdec can be decrypted). A better way to keep secret is to ask you to give me more advice.

Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.