maybe something like this:
Code: Select all
if (Error) {
refresh page and restart script without check next line;
} else {
continue script;
}
is it possible to refresh page and restart script without check next line?
Code: Select all
if (Error) {
refresh page and restart script without check next line;
} else {
continue script;
}
(F)CIM...! (Read my Sig...)ibamibrhm wrote:hi,
maybe something like this:
I using !ERRORIGNORE but after error found imacros keep continuing until last line, it take a long time.Code: Select all
if (Error) { refresh page and restart script without check next line; } else { continue script; }
is it possible to refresh page and restart script without check next line?
Quoting myself, ah-ah...!chivracq wrote:Some "Technique" I use myself as well in one of my ('.iim') Scripts, is to "send" your Script conditionally to some "fake" second Tab where all the Buttons and Links won't exist and therefore won't do anything...
Code: Select all
imacros version: 10.0.1
chrome version: 66
windows 10 pro v1803
Code: Select all
URL GOTO=https://www.lazada.co.id/products/asus-zenfone-max-pro-m1-zb602kl-3gb32gb-deepsea-black-i319671794-s325148883.html
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(4)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(7)>DIV>DIV>DIV>DIV>A>SPAN>I"
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(4)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(7)>DIV>DIV>DIV>DIV>A>SPAN>I"
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(4)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(7)>DIV>DIV>DIV>DIV>A>SPAN>I"
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(4)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(7)>DIV>DIV>DIV>DIV>A>SPAN>I"
TAG POS=1 TYPE=BUTTON ATTR=TXT:TAMBAH<SP>KE<SP>TROLI
WAIT seconds=0.5
TAG POS=1 TYPE=BUTTON ATTR=TXT:PEMBAYARAN
TAG POS=1 TYPE=BUTTON ATTR=TXT:LANJUTKAN<SP>KE<SP>PEMBAYARAN
WAIT seconds=0.5
TAG POS=3 TYPE=DIV ATTR=TXT:melalui<SP>bank<SP>transfer
TAG POS=1 TYPE=P ATTR=TXT:BCA
TAG POS=1 TYPE=BUTTON ATTR=TXT:BUAT<SP>PESANAN<SP>SEKARANG
Code: Select all
if (Error or cant buy) {
refresh page and restart script from line 1 without check next line;
} else {
continue script and buy;
} end;