Imacro Help Needed

Minerhq

Newbie
Joined
May 29, 2020
Messages
11
Reaction score
1
Hello,
This script is giving me runtime error while running and says - " RuntimeError: Tab number 2 does not exist, line: 11 "

Anyone can help to fix this problem? I appreciate your help.


VERSION BUILD=1005 RECORDER=CR
SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 10
SET !VAR1 EVAL("var min = 2; var max = 3; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR2 EVAL("var min = 4; var max = 5; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR3 EVAL("var min = 13; var max = 15; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
WAIT SECONDS={{!VAR1}}
URL GOTO=http:// kingdomlikes. com/free_points/instagram-followers
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Like
TAG POS=1 TYPE=A ATTR=ONCLICK:VisitThisPage(*);&&HREF:javascript:void(0);
TAB T=2
WAIT SECONDS={{!VAR1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS={{!VAR2}}
TAB T=1
TAB CLOSEALLOTHERS
WAIT SECONDS={{!VAR3}}


Since I can't post links so I have added some empty spaces in the URL.


Thank You.
 
Basically, after the popup window, macros are not working. Thanks for your help.
 
Imacro doesn't work on javascript pop up, as per code pop ups are not tab and hence doesn't recognize tab2 for that matter. What you have to is open that pop up on new tab and it'll work. Used to do that with addmefast points.
 
Imacro doesn't work on javascript pop up, as per code pop ups are not tab and hence doesn't recognize tab2 for that matter. What you have to is open that pop up on new tab and it'll work. Used to do that with addmefast points.

Just tried and it didn't work.

Please explain or how to edit above script for the portion you highlighted.
 
Just tried and it didn't work.

Please explain or how to edit above script for the portion you highlighted.
A bit late on the reply. If ya didn't found a sol yet, basically this-

EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"

and use Tag selector while following on new tab.

Looks messy, yeah. No code editor on BHW :[
 
Looks messy, yeah. No code editor on BHW :[
Well, there's one, if you hit "More options", when you reply. :)
Code:
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"
PHP:
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"
HTML:
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"
 
A bit late on the reply. If ya didn't found a sol yet, basically this-

EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"

and use Tag selector while following on new tab.

Looks messy, yeah. No code editor on BHW :[


Thanks for your help. Kindly help to check my edited code, is it correct? Because still pop up opens in a new window and the result is still the same.

Error - RuntimeError: Tab number 2 does not exist, line: 14

Code:
VERSION BUILD=1005 RECORDER=CR
SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 10
SET !VAR1 EVAL("var min = 2; var max = 3; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR2 EVAL("var min = 4; var max = 5; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
SET !VAR3 EVAL("var min = 13; var max = 15; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; randomNumber;")
WAIT SECONDS={{!VAR1}}
URL GOTO=http://kingdomlikes.com/free_points/instagram-followers
WAIT SECONDS={{!VAR2}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Like
wait seconds=4
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(5)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(2)>FORM>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>CENTER:nth-of-type(2)>A>DIV" BUTTON=0 MODIFIERS="ctrl"
TAB T=2
wait seconds=6
TAG SELECTOR="._5f5mN.jIbKX._6VtSN.yZn4P"
wait seconds=6
Tab close
WAIT SECONDS={{!VAR3}}
 
Does anyone help me with this? thank you.
 
Back
Top