Command Line Overview
Top  Previous  Next

Overview of available command line switches:



-macro mymacro

Set the macro name. Examples:

"C:\Program Files\InternetMacros\imacros.exe" -macro mymacro (Note that there is no .IIM extension for "mymacro)

or (full path name for macro)

or "C:\Program Files\InternetMacros\imacros.exe" -macro c:\folder1\folder2\mymacro.IIM
(When you use the full path name, you need the .IIM extension).




-loop <x>
Use the "LOOP" function instead of "PLAY". The number of loops is set to <x>. Example: with "-loop 20" the macro will run 20 times.

Tip: The Windows scripting interface allows you a much finer control over loops. Use for example:

set iim1= CreateObject ("InternetMacros.iim")
i = iim1.iimInit 
for m = 1 to 5
  i = iim1.iimPlay("mymacro")
next
i = iim1.iimExit




-noexit

If IIM is started via the "-macro" command line, IIM closes after the macro is completed. If you want to keep IIM open, use the "-noexit" switch. A typical use of this would be if IIM handles a login for you and you want to continue to work in the browser window.



-var1 Hello[SP]World!
-var2 Hello[SP]World!
-var3 Hello[SP]World!
-datasource mydatasource.

Set the built-in variables

On the command line, spaces are denoted by [SP], breaks by [BR] and line feeds with [LF].



-var_myvar Tom[SP]Tester
Creates and defines a new variable with the name "myvar". You can create up to 100 user defined variables.




-tray

Runs iMacros in the tray.



-silent

Runs iMacros completely in the background (no tray icon).



-useragent "User Agent"

Changes the iMacros Browser user agent string



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