Beruflich Dokumente
Kultur Dokumente
Advanced Commands
After visually recording the main parts of the macro, enhance and fine-tune the macro by editing it.
All macros are simple text files File structure and commands fully documented
Editing Macros:
The recorded macro is stored in an easy to read text file (file ending: ".iim") which can be easily edited. To edit a macro go to edit tab present on the left hand side of the browser, next to play and record and press edit macro button. The default editor for editing Internet Macros is "Windows Notepad" (notepad.exe). You can use another editor by changing the default editor in EDIT tab > click OPTIONS > PATHS tab. If the macro has the name mymacro", the corresponding text file is called mymacro.iim".
Session IDs
The link of some web sites change each time you visit them. This is because they create links with a "session id" which is different each time you log in. Solution 1: Try a different ClickMode Solution 2: Edit the macro manually after you recorded it and replace the ID (or any other changing part of the string) with "*". Example: The command line:
TAG POS=1 TYPE=AREA ATTR=HREF:https://overture.com/s/index.jhtml;$sessionid$ tzut78ZUZTIU67$&%
Built-in variables
These variables are used to define certain properties of the macro behavior For example the macro timeout value SET !TIMEOUT 33.
User-defined Variables
These variables are created at run time by the command line "var_MYVAR <value>". For Example -var_ITEM 15 creates the variable {{ITEM}} and gives it the value 15. These variables can be part of ANYTHING inside the macro. In addition to routine tasks of opening and saving web pages, macros can be used for more complicated tasks. For example, extracting data from one website and inserting it into another.
Built-in Variables
SET !TIMEOUT 33
Defines new timeout value
You can link to any CSV or List of variable file by using the statement in the macro: CMDLINE !DATASOURCE mydata.txt
Take a list of ISBN numbers from a file and search for them at Amazon.com
0970436300 0471430218 0471201006 0471232815 0131421891
TAG. EXTRACT=
Extracting Data:
Internet Macros can extract data from Web sites. Open the site of your interest and start recording. Click on the EXTRACT DATA button while in recording mode to bring up the extraction wizard. The EXTRACT button is only available in the iMacros Browser but not in the IE Plug-In.
In the browser window select the text that you want to extract.
Click the "Suggest" Button.
Reuse in macro using the {{!EXTRACT}} variable Saving the data via the Internet Macros Scripting Interface:
When you run the macro from a script you can return the data to the script and save it with whatever method or format you prefer. For example, you can save it to a text file or even directly to a database.
Create a price comparison engine: Take a list of ISBN numbers from a file and search for them at Amazon.com. Then save them in a CSV file with two columns (1st column: ISBN number, 2nd column: Price in US$)
0970436300 0471430218 0471201006 0471232815 0131421891