I used JavaScript to have a controlled run of multiple macros. It's easy to control the order and flow of the data in iMacros using JavaScript, just basics will do. The few commands you need to know are,
iimDisplay:- Displays a short message in the iMacros browser.
This display the message like shown in the image within the imacro sidebar of firefox.
Syntax:
iimDisplay("Hello");
iimSet():- Defines variables for use inside the macro and assigns values to them.
Syntax:
j=112332423;
iimSet("numeber",j); //it assigns the value of "j" to "number"
To use this variable in the macro enter it as {{number}} like,
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:register_form ATTR=ID:cust_number CONTENT={{number}}
iimPlay:- Plays a macro.
Syntax:
iimPlay("Demo-fill-form.iim");
iimDisplay:- Displays a short message in the iMacros browser.
This display the message like shown in the image within the imacro sidebar of firefox.
Syntax:
iimDisplay("Hello");
iimSet():- Defines variables for use inside the macro and assigns values to them.
Syntax:
j=112332423;
iimSet("numeber",j); //it assigns the value of "j" to "number"
To use this variable in the macro enter it as {{number}} like,
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:register_form ATTR=ID:cust_number CONTENT={{number}}
iimPlay:- Plays a macro.
Syntax:
iimPlay("Demo-fill-form.iim");

No comments:
Post a Comment