if imacros

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
fabiodurgante
Posts: 22
Joined: Sun Jan 07, 2018 5:02 pm

if imacros

Post by fabiodurgante » Thu Mar 28, 2019 2:33 pm

hey i want tranform if javascript for imacros code nut happen error somebody help me
javascript work

Code: Select all


	code="CODE:";
	code+= "TAG POS=1 TYPE=DIV ATTR=TXT:Completed* EXTRACT=TXT" +"\n"
	paid= iimPlay(code);
	paid= iimGetExtract();   		   	   
			
		if(paid == "") {
				code= "CODE:";
				code+= "TAG POS=3 TYPE=BUTTON ATTR=ARIA-LABEL:close&&CLASS:delete&&TXT:"+"\n";
				code+= "WAIT SECONDS=2"+"\n";
				code+= "TAG POS=1 TYPE=IMG ATTR=* "+"\n";
				iimPlay(code);
		
		} 
i try this imacros but ERROR

Code: Select all

SET !LOOP -99999999
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 2
SET !TIMEOUT_STEP 2


TAG POS=1 TYPE=BUTTON ATTR=TXT:Click<SP>here<SP>to<SP>here
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON ATTR=TXT:Play<SP>tryagain
WAIT SECONDS=17


TAG POS=1 TYPE=DIV ATTR=TXT:Completed* EXTRACT=TXT

SET !VAR1 {{!EXTRACT}}
'PROMPT {{!VAR1}}



SET ClickAmount EVAL("var y='{{!EXTRACT}}'; var z; if(y==""){z=1;} else{z=0;}; z;")
TAG POS={{ClickAmount}} TAG POS=3 TYPE=BUTTON ATTR=ARIA-LABEL:close&&CLASS:delete&&TXT:
TAG POS={{ClickAmount}} WAIT SECONDS=2
TAG POS={{ClickAmount}} TAG POS=1 TYPE=IMG ATTR=*

SET !EXTRACT NULL

what i do ??????????
User avatar
thecoder2012
Posts: 352
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: if imacros

Post by thecoder2012 » Wed Jul 03, 2019 8:03 pm

fabiodurgante wrote:
Thu Mar 28, 2019 2:33 pm
what i do ??????????
Errormessage is always helpful with test cases (url, htmlfile, htmlcodes).
In this case "wrong format of SET command, line 21 (Error code: -910)"!

Your line 21:

Code: Select all

SET ClickAmount EVAL("var y='{{!EXTRACT}}'; var z; if(y==""){z=1;} else{z=0;}; z;")
Better line 21:

Code: Select all

SET ClickAmount EVAL("var y='{{!EXTRACT}}'; var z; if(y==''){z=1;} else{z=0;}; z;")
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Post Reply