RunePlanet Posted January 20, 2013 Share Posted January 20, 2013 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> </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! Quote Link to comment https://forums.phpfreaks.com/topic/273383-javascrip-macro-wont-work/ Share on other sites More sharing options...
kicken Posted January 20, 2013 Share Posted January 20, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273383-javascrip-macro-wont-work/#findComment-1407062 Share on other sites More sharing options...
RunePlanet Posted January 20, 2013 Author Share Posted January 20, 2013 How would i go about that? Quote Link to comment https://forums.phpfreaks.com/topic/273383-javascrip-macro-wont-work/#findComment-1407080 Share on other sites More sharing options...
salathe Posted January 20, 2013 Share Posted January 20, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273383-javascrip-macro-wont-work/#findComment-1407095 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.