IMACROs CODE help

nappy-headed

Newbie
Joined
Apr 4, 2010
Messages
27
Reaction score
14
I have created some code within imacros that searches a condition.

Basically I want a search (loop) until the condition changes to a expect field (a check box) becomes available

** I do have imacros scripting version however need it to work within FF version


CODE for a IF/THEN loop?????

TRUE/FALSE or IF/THEN



---have the code above

******* MY CODE (LOOP)

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:search ATTR=NAME:sld CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:search ATTR=ID:submitsearch

*****LOOP

******** If condition becomes available (DO THIS)

'TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:frmlego ATTR=NAME:legotype CONTENT=YES

----have the code below



RESEARCH;

this is the condition example I found

ReturnCode = iim1.iimPlay ("YourMacro1")
if ReturnCode = 1 then end
'Do something
MsgBox "OK!"
else
'Do something else
ReturnCode = iim1.iimPlay ("YourMacro2")
end if
 
Last edited:
I am going to try to show here


RESEARCH;

this is the condition example I found

ReturnCode = iim1.iimPlay ("YourMacro1")
if ReturnCode = 1 then end


DO SEARCH {{LOOP}}


else

PROCESS imacros CODE HERE
/*** MAYBE another file OR code
-----waiting condition HERE ----- and end


ReturnCode = iim1.iimPlay ("YourMacro2")
end if
 
Back
Top