Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective
November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
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
-
Trax
- Posts: 43
- Joined: Thu Sep 13, 2012 4:07 pm
-
Contact:
Post
by Trax » Sat Apr 23, 2016 6:31 am
I'm trying something simple like :
scripts.js
Code: Select all
var saveImg = 'CODE:'
saveImg += 'ONDOWNLOAD FOLDER=C:\stuff FILE=tst.png WAIT=YES' + '\n'
saveImg += 'WAIT SECONDS = 2' + '\n'
saveImg += 'TAG POS=1 TYPE=IMG ATTR=* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT'
Nothing happens but if I do the same thing in a iim file :
Code: Select all
ONDOWNLOAD FOLDER=C:\stuff FILE=tst.png WAIT=YES
WAIT SECONDS = 2
TAG POS=1 TYPE=IMG ATTR=* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT
Same code works perfectly. A workaround is easy I can just simply call .iim from a .js file but it feels a little messy I don't multiple files. Any suggestions ? Also I tried the other methods to save an image and had the same outcome.
Win 7
FF 45.0.2
iMacros 8.9.7
-
wootshuska
- Posts: 23
- Joined: Mon Mar 07, 2016 12:04 am
Post
by wootshuska » Sun Apr 24, 2016 6:55 pm
try this
Code: Select all
var saveimg;
saveimg = "CODE:";
save img += "ONDOWNLOAD FOLDER=C:\\stuff FILE=tst.png WAIT=YES" + "\n";
save img += "WAIT SECONDS = 2" + "\n";
saveimg += "TAG POS=1 TYPE=IMG ATTR=* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT" + "\n";
iimPlay(saveimg);