error save image solve media

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 Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

error save image solve media

by fabiodurgante on Sun Sep 30, 2018 6:21 am

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 ??????
fabiodurgante
 
Posts: 20
Joined: Sun Jan 07, 2018 10:02 am

Re: error save image solve media

by thecoder2012 on Fri Nov 02, 2018 10:42 am

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!
User avatar
thecoder2012
 
Posts: 248
Joined: Sat Aug 15, 2015 10:14 am
Location: Internet


Return to iMacros for Firefox

Who is online

Users browsing this forum: No registered users and 14 guests

-->