macros - IF statement for iMacros Frame knowing the range -


i'm doing macro frame number change, know topic exist but, know range of frame, 5,6,7,8.

i want make if else else else. macros code, frame f=5.

version build=8810214 recorder=fx set !extract_test_popup no tab t=1 tag pos=1 type=a attr=txt:entra<sp>y<sp>juega wait seconds=5 tag pos=1 type=a attr=txt:nueva tag pos=1 type=label form=id:new_user attr=txt:*<sp>nombre<sp>de<sp>usuario set !var1 eval("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var = 0; < 10; i++){string += letters[parseint(math.random() * 25)]}; string") tag pos=1 type=input:text form=id:new_user attr=id:user_username content={{!var1}} tab t=2 tag pos=1 type=div attr=id:pubinboxfield tag pos=1 type=input:text attr=id:inboxfield content={{!var1}} tag pos=1 type=btn attr=txt:go! tab t=1 tag pos=1 type=label form=id:new_user attr=txt:*<sp>email tag pos=1 type=input:text form=id:new_user attr=id:user_email content={{!var1}}@ tag pos=1 type=input:password form=id:new_user attr=id:user_password content=banrcxf2bkm4uvxesorklxupmitcz9lusq6iazq3ml3yozehfkmjnfz3msgd+nna7mbkcwavpi+90iew3vogzg== tag pos=1 type=input:password form=id:new_user attr=id:user_password_confirmation content=k1rndyuqpatdiyrdjh+43msym72lnywgl3rdb2lqecy+4ubqq1f51qopp9xfrv6/3y78xqywtkd+4qa3ii5wng== tag pos=1 type=input:checkbox form=id:new_user attr=id:terms_and_conditions content=yes tag pos=1 type=input:submit form=id:new_user attr=name:commit tab t=2 wait seconds=60 tag pos=1 type=div attr=txt:bienvenido<sp>confirma<sp>tu<sp>cuenta frame f=5  tag pos=1 type=a attr=txt:empieza<sp>a<sp>jugar* tag pos=1 type=div attr=txt:fĂștbol wait seconds=10 tag pos=1 type=a attr=txt:liga wait seconds=10 tag pos=1 type=a attr=txt:juega wait seconds=10 tag pos=1 type=label form=id:bet_form_71595 attr=id:label_option_id_479188 tag pos=1 type=input:radio form=id:bet_form_71595 attr=id:option_id_479188 tag pos=1 type=input:number form=id:bet_form_71595 attr=id:points content=500 tag pos=1 type=button form=id:bet_form_71595 attr=id:play-action wait seconds=20 tag pos=1 type=a attr=txt:× wait seconds=3 tag pos=1 type=a attr=txt:liga wait seconds=10 tag pos=1 type=a attr=txt:juega wait seconds=10 tag pos=1 type=label form=id:bet_form_71601 attr=id:label_option_id_479262 tag pos=1 type=input:radio form=id:bet_form_71601 attr=id:option_id_479262 tag pos=1 type=input:number form=id:bet_form_71601 attr=id:points content=500 tag pos=1 type=button form=id:bet_form_71601 attr=id:play-action wait seconds=20 tag pos=1 type=a attr=txt:liga wait seconds=10 tag pos=1 type=a attr=txt:juega wait seconds=10 tag pos=1 type=label form=id:bet_form_71490 attr=id:label_option_id_478013 tag pos=1 type=input:radio form=id:bet_form_71490 attr=id:option_id_478013 tag pos=1 type=input:number form=id:bet_form_71490 attr=id:points content=3000 tag pos=1 type=button form=id:bet_form_71490 attr=id:play-action wait seconds=20 tag pos=1 type=i attr=class:fa<sp>fa-sign-out&&txt: tab closeallothers url goto=http://www.exampleweb1.com/ tab open tab t=2 url goto=https://www.exampleweb2.com/ 

thanks all, regards.

    var macro;      macro = "code:" + "\n";     macro += "set !timeout_step 0" + "\n";     macro += "frame f={{frame}}" + "\n";     macro += "tag pos=1 type=a attr=txt:juega* content=event:mouseover" + "\n";       var macro1;      macro1 = "code:" + "\n";     macro1 += "frame f={{frame}}" + "\n";     macro1 += "tag pos=1 type=a attr=txt:juega* " + "\n";     macro1 += "tab t=2" + "\n";      //declare frame     var frame = 1;      //loop until script finds matching frame     while (true) {         iimset("frame", frame)         ret = iimplay(macro)          //if macro returns true frame has been found. break , play macro1         if (ret > 0) {             break;         }          frame++;     }      //set frame , play macro     iimset("frame", frame)      iimplay(macro1) 

this should code looking for. test , see if works.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -