How do I link several macros together?
Top  Previous  Next

Q: How do I link several macros together or run one after the other?

A: There are several method to combine different macros.

Copy & Paste
iMacros are simple text files, so you can easily combine (merge) several macros by editing the text files. The
.iim macro files can be viewed and edited with an editor (e.g. Notepad), see here.

Batch files
If all you need is to run several macros, one after the other, you can call them using the command line interface in a batch file. The -noexit command line switch may prove helpful in this context. Example batch files can be found in the
Examples/Batch Files folder of your iMacros installation.

Scripting Interface
You can use the
iimPlay command to run one macro after the other. The following macro continues exactly at the same position where the other macro stopped as the browser window remains open between each macro. Remember to remove the URL GOTO... command from the following macros, if you want it to continue exactly where the other macro left off. To close a browser window, you can use iimExit. The documented example script combine-macros.vbs can be found in the Examples/Windows Scripting Host folder of your iMacros installation.






Page URL http://www.iopus.com/imacros/help/faq_link_macros.htm