call a iMacros-Script from greasemonkey

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
Duffman
Posts: 1
Joined: Tue Mar 29, 2016 5:01 pm

call a iMacros-Script from greasemonkey

Post by Duffman » Tue Mar 29, 2016 5:06 pm

Hello together,

I am running a Greasemonkey-Script on a specific website. How is it possible to call a iMacros-Script from Greasemonkey with iimPlay()?
User avatar
thecoder2012
Posts: 355
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: call a iMacros-Script from greasemonkey

Post by thecoder2012 » Tue Mar 29, 2016 9:46 pm

You can try iimInit, iimOpen and then iimPlay or make a separate script file in imacros and then call it from your Greasemonkey-Script using imacros://run/?m=your-script.iim as url

Greasemonkey:

Code: Select all

addEventListener('load', function() {
    location.replace("imacros://run/?m=your-script.iim");
}, false );
Example without addEventListener:

Code: Select all

// ==UserScript==
// @name         New Userscript
// @match        https://www.google.de/*
// @run-at       document-end
// @grant        none
// ==/UserScript==

alert("test");
location.replace("imacros://run/?m=your-script.iim");
And see my newest post with Tampermonkey under use imacros code in tampermonkey (same with Greasemonkey)
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Post Reply