Chrome 54.0.2840.90 (64-bit)
iMacros VERSION BUILD=844 RECORDER=CR
I started a thread a couple of days ago in the Firefox section of this site asking for help with some macros I was working on.
The purpose of these macros was to check a site for a specific keyword and this check for the keyword will keep looping until the keyword has been found. A button would be pressed each time the loop occurs to refresh the dynamic content on the page. When the keyword is found on the page a link on the page is clicked on. This link (link 1) contains different text each time. After 'link1' has been clicked on, an audio file is played and a new webpage opens up in a new tab, where any links matching the wildcards will be opened automatically. At this point, the macro function ends.
I was also using another extension in Firefox which monitored the keyword, and when the word in that position changed to the keyword the Firefox extension would bring this tab into focus. This was very handy because even if I was working on a different program or browser, when the keyword was found, the Firefox tab would be immediately made the active window, and be brought into focus. This wasn't possible using a macro alone.
Unfortunately, I have been having various problems while opening Google sheets in Firefox, with sheets either lagging or script errors appearing. I have tried various configurations and versions of Firefox on Linux Mint. When I open the same sheets in Chrome they run completely smooth and without any script errors, so I have decided to install the iMacros extension on Chrome instead.
I am aware of a couple of ways where the Firefox iMacro code will not function in Chrome. One is the 'CLICK X=199 Y=10' command this CLICK command does not exist, but I have been reading about the 'EVENTS TYPE=CLICK' command which seems to have been introduced for Chrome recently and I have been trying to get this command to work with some X and Y coordinates, similar to how to 'CLICK X=199 Y=10' command that I was using previously in Firefox.
The one function that doesn't work is the 'imacros://run/' command to load a macro from within a macro as it seems that macros are stored differently when using iMacros for Chrome. In the iMacros panel I have right clicked on the macro containing this command and have selected 'Convert', so the macro is now listed in my Chrome bookmarks. What I don't know how to do is to load a Chrome bookmark from within a macro. The 'imacros://run/' command worked well in Firefox to load another macro, but I am not sure how to do this in Chrome.
The macros work well in Chrome apart from these two functions.
Here is the Firefox code (thanks to iimfun for the help with this in the Firefox thread). These two macros were stored in a folder called 'Searching'.
1_search_keyword.iim (working correctly with Firefox 49.0.2, iMacros VERSION BUILD=9030808 RECORDER=FX)
Code: Select all
Code: Select all
' (click_link_left) TAB T=1 CLICK X=451 Y=104 ' (open_link_wildcard) TAG POS=1 TYPE=A ATTR=TXT:*docs.google.com*
I would appreciate any help with getting these two macros fixed so they work correctly in Chrome. I would also appreciate if anyone knows how a macro could bring a Chrome tab into focus when the keyword has been found. This would be helpful if I was working in a different Chrome tab and didn't see/hear that the keyword had been found.