Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. var macro, retcode, url="", pos=1, stop=false,i=1;
  2. var username=prompt("Please enter Avatar / Email:","Guest_yourname");
  3. var passwd=prompt("Please enter Password:","password");
  4. var message=prompt("Enter the message:"," your message");
  5. macro="CODE:";
  6. macro+="VERSION BUILD=7400919 RECORDER=FX \n";
  7. macro+="CLEAR\n";
  8. macro+="TAB T=1\n";
  9. macro+="URL GOTO=http://www.imvu.com/login/\n";
  10. macro+="TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://secure.imvu.com/login/login/ ATTR=ID:login_field CONTENT="+username+"\n";
  11. macro+="SET !ENCRYPTION NO\n";
  12. macro+="TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://secure.imvu.com/login/login/ ATTR=ID:password_field CONTENT="+passwd+"\n";
  13. macro+="TAG POS=1 TYPE=BUTTON ATTR=ID:btn_logon\n";
  14. retcode=iimPlay(macro);
  15.  
  16. while(i<101){
  17. macro="CODE:";
  18. macro+="VERSION BUILD=7400919 RECORDER=FX \n";
  19. macro+="URL GOTO=http://www.imvu.com/people/search.php?page="+i+"&sort=online_since&gender=1&location=223&minage=18&maxage=99&online=1&interests=&relationship=0&orientation=0&here_for=0&default=1&action=Search#pg\n";
  20. retcode=iimPlay(macro);
  21. if (retcode < 0) // an error has occured
  22. {
  23. errtext = iimGetLastError();
  24. alert("Error 1: "+retcode+": "+errtext);
  25. break;
  26. }
  27.  
  28. ////////////////////// Tested perfect!!
  29. //var message="Hii";
  30. while(!stop)
  31. {
  32. macro="CODE: \n";
  33. macro+="VERSION BUILD=7400919 RECORDER=FX \n";
  34. // macro+="SET !REPLAYSPEED SLOW\n";
  35. // macro+="TAB T=1 \n";
  36. macro+="SET !ERRORIGNORE YES\n";
  37. macro+="WAIT SECONDS=1\n";
  38. macro+="TAG POS="+pos+" TYPE=A ATTR=ID:send_* \n";
  39. // macro+="SET !REPLAYSPEED SLOW\n";
  40. macro+="WAIT SECONDS=3\n";
  41. retcode = iimPlay(macro);
  42. if (retcode < 0) // an error has occured
  43. {
  44. errtext = iimGetLastError();
  45. alert("Error 2: "+retcode+": "+errtext);
  46. //alert(macro);
  47.  
  48. stop=true;
  49. }
  50.  
  51.  
  52. macro="CODE: \n";
  53. // macro+="TAB T=1 \n";
  54. macro+="TAG POS=1 TYPE=TEXTAREA ATTR=ID:message_text CONTENT="+message.replace(/ /g,"<SP>")+"\n";
  55. //macro="";
  56. macro+="TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:is_public_* CONTENT=NO\n";
  57. macro+="TAG POS=1 TYPE=BUTTON ATTR=ID:btn_send\n";
  58. macro+="WAIT SECONDS=2\n";
  59. retcode = iimPlay(macro);
  60.  
  61. if (retcode < 0) // an error has occured
  62. {
  63. errtext = iimGetLastError();
  64. alert("Error 3: "+retcode+": "+errtext);
  65. //alert(macro);
  66. stop=true;
  67. }
  68. macro="CODE: \n";
  69. macro+="TAG POS=1 TYPE=BUTTON ATTR=ID:message-complete-ok";
  70.  
  71. retcode = iimPlay(macro);
  72.  
  73. if (retcode < 0) // an error has occured
  74. {
  75. errtext = iimGetLastError();
  76. macro="CODE: \n";
  77. macro+="TAG POS=1 TYPE=BUTTON ATTR=ID:mw_btn_cancel";
  78. }
  79.  
  80. if( pos > 9)
  81. {
  82. break;
  83. }
  84. else
  85. {
  86. pos++;
  87. }
  88.  
  89. }
  90. pos=1;
  91. i++;
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement