if imacros

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
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: 446
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