Demo-FillVariousWebsites

From iMacros
Jump to: navigation, search

This macro provides some standard commands for filling forms automatically using iMacros, it is designed to work with a broad range of form filling websites.

This demo works with the following page: Any

Macro Code

 VERSION BUILD=300703    
 'This macro has no URL statement because it is supposed to fill any webform
 '
 'It has several TAG statements for the same value to fit as many sites as possible
 '
 SET !ERRORIGNORE YES 
 '
 'SET !LOADCHECK NO
 'If you set !ERRORIGNORE YES the LoadCheck is automatically switched off. 
 'The "LoadCheck" value is automatically 1/10th of the the timeout value. Before a TAG error occurs, 
 'Internet Macros does some additional checks to make sure, the TAG line is really not found. 
 'Typically this check is required only for complex pages with frames and javascript and pages that reload themself. 
 '
 SET !DATASOURCE address.txt
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:Name CONTENT={{name}}
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*email* CONTENT={{email}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:SignInName CONTENT={{email}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:EMAIL CONTENT={{email}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:EMAIL_CONFIRM CONTENT={{email}} 
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*Phone* CONTENT={{phone}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*PHONE* CONTENT={{phone}}
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*fax* CONTENT={{fax}}
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*FAX* CONTENT={{fax}}
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*First* CONTENT={{firstname}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*FIRST* CONTENT={{firstname}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:FNAME CONTENT={{firstname}} 
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*LAST* CONTENT={{lastname}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*Last* CONTENT={{lastname}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*LNAME* CONTENT={{lastname}} 
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*STREET* CONTENT={{street}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:ADD* CONTENT={{street}} 
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*CITY* CONTENT={{city}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*city* CONTENT={{city}} 
 '
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*POSTAL* CONTENT={{zip}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:*Postal* CONTENT={{zip}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:ZIP* CONTENT={{zip}} 
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:zip* CONTENT={{zip}} 
 '
 TAG POS=1 TYPE=SELECT FORM=* ATTR=NAME:Month CONTENT={{month}}
 TAG POS=1 TYPE=SELECT FORM=* ATTR=NAME:Day CONTENT={{day}}
 TAG POS=1 TYPE=INPUT:TEXT FORM=* ATTR=NAME:Year CONTENT={{year}}