Jump to content


Photo

Javascrip macro wont work?


  • Please log in to reply
3 replies to this topic

#1 RunePlanet

RunePlanet

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 20 January 2013 - 07:08 AM

Hey everyone i am new here,

For some reason my Jscript wont work when the page is loaded

See
http://rune-planet.com/auto.php


My code
<script>
//author Danny @ runeplanet

var macroStart;
    macroStart ="CODE:";
    macroStart +="SET !ERRORIGNORE YES" + "\n";
    macroStart +="SET !TIMEOUT_TAG 1" + "\n";
    macroStart +="SET !TIMEOUT_STEP 1" + "\n";
    macroStart +="SET !TIMEOUT_PAGE 30" + "\n";
    macroStart +=" SET !REPLAYSPEED FAST" + "\n";
    macroStart +="SET !TIMEOUT_MACRO 150" + "\n";
    macroStart +="TAB T=1" + "\n";
    macroStart +="WAIT SECONDS=0" + "\n";
    macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Facebook<SP>Likes" + "\n";
macroStart +="WAIT SECONDS=1" + "\n";
    macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
    macroStart += "TAB T=2" + "\n";
    macroStart += " FRAME F=0" + "\n";
    macroStart += "TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Enter and vote" + "\n";
    macroStart += "TAB T=2" + "\n";
macroStart +="WAIT SECONDS=3" + "\n";
    macroStart += "TAB T=1" + "\n";
macroStart += "TAB CLOSEALLOTHERS" + "\n";
    macroStart +="WAIT SECONDS=3" + "\n";
    macroStart +="TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:form1 ATTR=ID:gateway-bottom" + "\n";
macroStart +="WAIT SECONDS=3" + "\n";
    macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
    macroStart += "TAB T=2" + "\n";
    macroStart += " FRAME F=0" + "\n";
    macroStart += "TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Enter and vote" + "\n";
    macroStart += "TAB T=2" + "\n";
macroStart +="WAIT SECONDS=3" + "\n";
    macroStart += "TAB T=1" + "\n";
macroStart += "TAB CLOSEALLOTHERS" + "\n";
    macroStart +="WAIT SECONDS=1" + "\n";
    macroStart +="TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:form1 ATTR=ID:gateway-bottom" + "\n";
macroStart +="WAIT SECONDS=3" + "\n";
    macroStart += "TAG POS=1 TYPE=A ATTR=TXT:Like" + "\n";
    macroStart += "TAB T=2" + "\n";
    macroStart += " FRAME F=0" + "\n";
    macroStart += "TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Enter and Vote" + "\n";
    macroStart += "TAB T=2" + "\n";
macroStart +="WAIT SECONDS=1" + "\n";
    macroStart += "TAB T=1" + "\n";
macroStart += "TAB CLOSEALLOTHERS" + "\n";
    macroStart +="WAIT SECONDS=2" + "\n";
    macroStart +="TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:form1 ATTR=ID:gateway-bottom" + "\n";
macroStart +="WAIT SECONDS=3" + "\n";


var i=0;
var n=prompt("Input the number of Facebook loops.",5)
for (i=1; i <= n; i++)
{
iimPlay("CODE:"+"URL GOTO=www.rune-planet.com/auto.php")

iimPlay(macroStart,25)
iimDisplay("Current loop is: "+i)
iimDisplay("Refreshing the page")
iimPlay("CODE:"+"TAB T=1\n"+"TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:reload&&VALUE:Reload<SP>the<SP>page\n"+"REFRESH")
iimDisplay("New Page")
}
</script>
<p><a href="http://www.ultimateprivateservers.com/runescape/index.php?a=in&u=runeplanet" target="_blank">Like</a></p>
<p>&nbsp;</p>
<p><a href="auto.php">Facebook Likes</a></p>


If you have any reason why this isn't working please do help me.

My skype is = zepsity.co.uk


Thanks a bunch!

#2 kicken

kicken

    Wiser? Not exactly.

  • Gurus
  • 2,569 posts
  • LocationBonita, FL

Posted 20 January 2013 - 07:38 AM

Uncaught ReferenceError: iimPlay is not defined auto.php:62

You're not defining that function anywhere.  You need to either include the appropriate library or create the function.

Recycle your old CD's, don't trash them!
Did I help you out?  Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#3 RunePlanet

RunePlanet

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 20 January 2013 - 09:16 AM

How would i go about that?

#4 salathe

salathe

    Badger

  • Staff Alumni
  • 1,859 posts
  • LocationEdinburgh, Scotland

Posted 20 January 2013 - 11:39 AM

Looks like you're trying to use iMacros; the best place is to (re)read their documentation. You're more likely to get an answer there, than taking your chances here that someone has used that software and can help you out.
PHP Documentation Team




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com