Tips for using iMacros for Chrome freeware

Discussions and Tech Support specific to the iMacros for Chrome extension.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Marcia, Tech Support

Tips for using iMacros for Chrome freeware

Post by Marcia, Tech Support » Fri Dec 22, 2017 11:17 am

With the release of iMacros for Chrome 10, some of iMacros functionality is now only available in the licensed version. These are features we believe are most likely to be used in a business environment and should not affect hobby users of iMacros for Chrome.

Because we think there is still a lot of value in the freeware, we would like to give you a few tips to overcome some of the limitations, if you would like to keep using the freeware for your personal tasks.

1. Existing macro files can easily be copied to bookmarks through the clipboard: open the macro file in any text editor, copy its contents to the clipboard and paste over an existing bookmark macro which is open in the macro editor. If you do not have any bookmark macro, start recording to create one. Use SaveAs to save with a new name.

2. Long macros can be divided in smaller chunks and played one after the other. Just be aware that variables and macro settings are reset after each play.

3. To input data from CSV files, use an html file with a table where your data is displayed on a Chrome tab (see below.) Tag the table elements from that tab instead of reading from a file. Excel can save a worksheet (an imported CSV file) to html.

4. Besides the 3 user variables (!VAR1, !VAR2, and !VAR3), the !EXTRACT macro variable can also be used to "park" values. Or one can, as above, make use of an auxiliary html file loaded in a Chrome tab. A dummy form like in might be all you need.

Sample HTML page to load a local CSV file and display it as a table in the browser:

Code: Select all


            width: 100%
        .row .cell
            padding: 5px;            
            border: 1px solid black;
        window.onload = function () {
            var datasource = document.getElementById('datasource');
            datasource.addEventListener('change', function (e) {
                var csvFile = datasource.files[0];
                var fileReader = new FileReader();
                fileReader.onloadend = function (e) {
                    var table = document.getElementById('table');
                    var lines = fileReader.result.split(/\r?\n/);
                    var n = 0;
                    lines.forEach(function (line) {
                        var tr = document.createElement("tr");
                        tr.setAttribute("class", "row");
                        tr.setAttribute("id", "row_" + n);
                        var cells = line.split(/,/);
                        var m = 0;
                        cells.forEach(function (cell) {
                            var td = document.createElement("td");
                            td.setAttribute("id", "cell_" + n + "-" + m);
                            td.setAttribute("class", "cell");
                            var text = document.createTextNode(cell);
            }, false);

    Select CSV file:
    <input type="file" id="datasource" />
    <div>Table with loaded CSV file:</div>
    <table id="table" class=table></table>

Post Reply