Editor

(Copy URL in PhpBB Forum Format - Info)

From iMacros

Jump to: navigation, search

You find now in the iMacros distribution folder the iMacros Editor (iMacrosEditor.exe) which was designed specially to edit iMacros macros. But you can use it for any text file, including batch files, vbs and javascripts, XML files, etc. The iMacros Editor is able to recognize these languages and highlight their syntax accordingly. The iMacros Editor is now also associated to the *.iim files so by right clicking on any .iim file and choosing Edit, the macro is open in the iMacros Editor. This is also the case if you choose any "edit action" in iMacros Browser or IE Plugin.

The iMacros Editor offers more than just highlighting iMacros syntax. Right-click for the Play menu items

Contents

Play Macro Selection

The iMacros Editor can offer more than only highlighting iMacros syntax. Look for the Play menu item
The PLAY menu. The same selection is available via right-click. Check "Play in IE" to replay the macro in Internet Explorer.
. There you find not only the option to play the complete macro open in the editor, but also fragments of it. The editor sends the macro or macro lines to the running iMacros Browser (or IE Plugin) to be played via Scripting Interface (needs iMacros Enterprise Edition). Please notice these few remarks about the play feature:
  • If no text is selected on the editor, the line currently under the cursor is played.
  • The editor sends complete lines to iMacros, even if the selection contains only a piece of a line.
  • Play from Here plays all lines from the cursor to the end of the macro.
  • Check Play in IE to have the macro or macro fragment played in Internet Explorer.
  • Play in IE is checked by default if the editor was started from iMacros for IE Plugin, via one of the "edit actions" in the iMacros sidebar.
  • The editor plays the macro in the currently open browser. If an open browser is not found, a new browser window is created to play the macro.
  • After the play, the browser window remains open.

Geek tip from our developers: Behind the scenes the editor uses the iMacros Scripting API to play the macro with the iimInit ("", FALSE) setting to connect to the existing iMacros or Internet Explorer instance. The iimPlayCode command is used send the code from the editor to iMacros.

Templates

You can insert pre-defined command and variable templates directly into your macro using the Insert menu.

Code Generator

You also have the convenience of the iMacros Code Creator built right into the Editor for converting macro statements into dynamically created macro strings in either VBScript, C#, or Javascript code. Just right-click in the editor window and select the Code Generation item on the the pop-up menu. See iimPlayCode for more details on how to use the generated code.


The Editor generates C#, VB.NET or VBS code for direct use with the iimPlayCode command.

Image preview

Another cool feature of the iMacros Editor is the ability to show thumbnails of the images which you use in ImageSearch
Hover the mouse over the name of an image file to see a preview of the image.
. When you hover the mouse over the name of an image file, it pops-up a small thumbnail preview of that image.

Syntax Highlighting

You can tell the Editor to only highlight commands that are supported in a specific iMacros version. Of course, all core commands are supported in all version.

Our goal is that all versions of iMacros support the same commands and have exactly the same syntax. However, due to differences between the browsers, not all commands are available in all flavors of iMacros.

The icons iMacros Browser IE Plug-in Firefox Chrome on each command detail page show if the specific command is supported in the iMacros Browser, iMacros for Internet Explorer, iMacros for Firefox, and iMacros for Chrome.

Commands that are supported in all browsers work exactly the same in each browser, so macros created in the iMacros Browser (or Internet Explorer) can be replayed in iMacros for Firefox and vice versa. Browser specific differences are automatically handled by iMacros.

See Also

Command Reference

Personal tools
Home
Toolbox

Website Monitoring