Code: Select all
SET !LOOP 8
FRAME F = {{!LOOP}}
TAG POS=1 TYPE=A ATTR=TXT:HERE
Code: Select all
SET !LOOP 8
FRAME F = {{!LOOP}}
TAG POS=1 TYPE=A ATTR=TXT:HERE
Code: Select all
var frame=SearchFrame();
iimSet("frame",frame)
var macra;
macra = "CODE:";
macra += "WAIT SECONDS=4" + "\n";
macra += "TAG POS=1 TYPE=DIV ATTR=TXT:Confirmacion" + "\n";
macra += "WAIT SECONDS=4" + "\n";
macra += "FRAME F=frame" + "\n";
macra += "TAG POS=1 TYPE=A ATTR=TXT:Click<SP>aqui<SP>para<SP>confirmar<SP>el<SP>correo EXTRACT=HREF" + "\n";
macra += "TAB OPEN" + "\n";
macra += "WAIT SECONDS=1" + "\n";
macra += "TAB T=3" + "\n";
macra += "URL GOTO={{!EXTRACT}}" + "\n";
macra += "WAIT SECONDS=2" + "\n";
macra += "TAB CLOSE" + "\n";
iimPlay(macra)
function SearchFrame()
{
var macroFindFrame;
macroFindFrame = "CODE:";
macroFindFrame += "TAB T=1" + "\n";
macroFindFrame += "FRAME F = {{i}}" + "\n";
macroFindFrame += "TAG POS=1 TYPE=A ATTR=TXT:Click<SP>aqui<SP>para<SP>confirmar<SP>el<SP>correo EXTRACT=HREF" + "\n";
var frame=0;
for(i=1;i<=7;i++){
iimSet("i",i)
//if the result of the macro is true save frame number and break
if(iimPlay(macroFindFrame)==true)
{
frame=i;
break;
}
}
//return frame number
return frame;
}
var other = "CODE:";
other += "TAB CLOSEALLOTHERS" + "\n";
iimPlay(other)
bilgamyompi wrote:I just try to get the frame but using loop not works.I tried with javascript but i dont know how to deal with implay and the same time use a loop for getting the frameCode: Select all
SET !LOOP 8 FRAME F = {{!LOOP}} TAG POS=1 TYPE=A ATTR=TXT:HERE
bilgamyompi wrote:Tried in javascript but never catch the frame!Code: Select all
var frame=SearchFrame(); iimSet("frame",frame) var macra; macra = "CODE:"; macra += "WAIT SECONDS=4" + "\n"; macra += "TAG POS=1 TYPE=DIV ATTR=TXT:Confirmacion" + "\n"; macra += "WAIT SECONDS=4" + "\n"; macra += "FRAME F=frame" + "\n"; macra += "TAG POS=1 TYPE=A ATTR=TXT:Click<SP>aqui<SP>para<SP>confirmar<SP>el<SP>correo EXTRACT=HREF" + "\n"; macra += "TAB OPEN" + "\n"; macra += "WAIT SECONDS=1" + "\n"; macra += "TAB T=3" + "\n"; macra += "URL GOTO={{!EXTRACT}}" + "\n"; macra += "WAIT SECONDS=2" + "\n"; macra += "TAB CLOSE" + "\n"; iimPlay(macra) function SearchFrame() { var macroFindFrame; macroFindFrame = "CODE:"; macroFindFrame += "TAB T=1" + "\n"; macroFindFrame += "FRAME F = {{i}}" + "\n"; macroFindFrame += "TAG POS=1 TYPE=A ATTR=TXT:Click<SP>aqui<SP>para<SP>confirmar<SP>el<SP>correo EXTRACT=HREF" + "\n"; var frame=0; for(i=1;i<=7;i++){ iimSet("i",i) //if the result of the macro is true save frame number and break if(iimPlay(macroFindFrame)==true) { frame=i; break; } } //return frame number return frame; } var other = "CODE:"; other += "TAB CLOSEALLOTHERS" + "\n"; iimPlay(other)
Okay but your example has no url or html code for tests.bilgamyompi wrote:Tried in javascript but never catch the frame!
Pfff, yeah exactly what I meant with my " ", User joined in Feb 2018, hum 8 months ago now [Novb 2018], 30x Posts and started many Threads, I must have given some Explanation about my " " in their/some previous Thread already..., and why I didn't or stopped answer(ing) their Post/Thread(s)...thecoder2012 wrote:Okay but your example has no url or html code for tests.bilgamyompi wrote:Tried in javascript but never catch the frame!
Thanks for your explanation!chivracq wrote:Pfff, yeah exactly what I meant with my " ", User joined in Feb 2018, hum 8 months ago now [Novb 2018], 30x Posts and started many Threads, I must have given some Explanation about my " " in their/some previous Thread already..., and why I didn't or stopped answer(ing) their Post/Thread(s)...
Yeah, you know me..., I usually get a bit fed up after asking 2 or 3 times for FCI and if User doesn't follow up and doesn't share their Sol after helping them 1-2-3 times...thecoder2012 wrote:Thanks for your explanation!chivracq wrote:Pfff, yeah exactly what I meant with my " ", User joined in Feb 2018, hum 8 months ago now [Novb 2018], 30x Posts and started many Threads, I must have given some Explanation about my " " in their/some previous Thread already..., and why I didn't or stopped answer(ing) their Post/Thread(s)...