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
-
fabiodurgante
- Posts: 22
- Joined: Sun Jan 07, 2018 5:02 pm
Post
by fabiodurgante » Sun Sep 30, 2018 1:21 pm
hey my code javascript
Code: Select all
var macro;
var mediafaucet=null;
macro = "CODE:"+"\n";
macro += "TAB T=1"+"\n";
macro += "URL GOTO= https://www.solvemedia.com/publishers/captcha-type-in"+"\n";
macro += "FILEDELETE NAME=C:\imagens\test.png"+"\n";
macro += "ONDOWNLOAD FOLDER=C:\imagens FILE=test.png"+"\n";
macro += "EVENT TYPE=KEYPRESS SELECTOR=* KEY=34"+"\n";
macro += "EVENT TYPE=KEYPRESS SELECTOR=* KEY=34"+"\n";
macro += "TAG POS=1 TYPE=DIV ATTR=ID:adcopy-puzzle-image* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT"+"\n";
macro += "WAIT SECONDS=3"+"\n";
macro += "URL GOTO= https://www.solvemedia.com/publishers/captcha-type-in"+"\n";
iimPlay(macro);
mediafaucet=iimPlay("CODE:TAG POS=1 TYPE=DIV ATTR=ID:adcopy-puzzle-image*");
if(mediafaucet>0){
alert ("captcha solve media")
}
if(mediafaucet<0){
alert ("dont captcha solve media")
}
this code work its ok in imacros file IIM, but file JS dont save image captcha solve media, but javascript dont save image ??????
-
thecoder2012
- Posts: 446
- Joined: Sat Aug 15, 2015 5:14 pm
- Location: Internet
-
Contact:
Post
by thecoder2012 » Fri Nov 02, 2018 5:42 pm
fabiodurgante wrote:this code work its ok in imacros file IIM, but file JS dont save image captcha solve media, but javascript dont save image ??????
More Knowledge in Javascript is required. Not much but a little. Slashes, backslashes, errorignore and return value (ret code) are very helpful.
Easier is this code as IIM file with placeholder (iimSet with iimPlay).
Example:
Code: Select all
var macro;
var mediafaucet = null;
macro = "CODE:"+"\n";
macro += "SET !ERRORIGNORE YES"+"\n";
macro += "TAB T=1"+"\n";
macro += "URL GOTO= https://www.solvemedia.com/publishers/captcha-type-in"+"\n";
macro += "WAIT SECONDS=3"+"\n";
macro += "ONDOWNLOAD FOLDER=D:\\imagens FILE=captcha_{{!NOW:yyyymmdd_hhnnss}}.jpg"+"\n";
macro += "TAG POS=1 TYPE=DIV ATTR=ID:adcopy-puzzle-image-profit* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT"+"\n";
macro += "WAIT SECONDS=3"+"\n";
macro += "URL GOTO= https://www.solvemedia.com/publishers/captcha-type-in"+"\n";
iimPlay(macro);
mediafaucet = iimPlayCode("TAG POS=1 TYPE=DIV ATTR=ID:adcopy-puzzle-image-profit");
if(mediafaucet>0){
alert("captcha solve media")
}
if(mediafaucet<0){
alert("dont captcha solve media")
}
Tested with Pale Moon v27.6.2+Waterfox 56 and iMacros 8.9.7 under Windows 8.1 (x64) (
solvemedia examples with iMacros)
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me!