iMacros Question - need help

 

Results 1 to 7 of 7
I have an iMacros script with 30 lines of code/commands. I ONLY want to loop ...
  1. #1
    Ming the Merciless's Avatar
    Ming the Merciless is online now MonsterSquad
    Join Date
    Sep 2012
    Location
    United States
    Posts
    522
    Thanks
    555
    Thanked 464 Times in 231 Posts

    Default iMacros Question - need help

    I have an iMacros script with 30 lines of code/commands. I ONLY want to loop the last line, not the entire script (I want to loop it 500 times). How to do this without repeating the entire script over and over (I like to track the number of loops have gone on)? I have looked into !LOOP but I am coming up with nothing. Thanks in advance guys (and gals)!




  2. #2
    OrangeNRG's Avatar
    OrangeNRG is offline Jr. VIP
    Join Date
    Dec 2012
    Posts
    186
    Thanks
    44
    Thanked 103 Times in 64 Posts

    Default Re: iMacros Question - need help

    You can always copy and paste as a last resort. I'm not sure of the proper way of doing it though.

  3. #3
    nikchaing's Avatar
    nikchaing is offline bit.ly/gucci-rank
    Join Date
    Apr 2013
    Posts
    231
    Thanks
    111
    Thanked 115 Times in 78 Posts

    Default Re: iMacros Question - need help

    Can you give us some details?

  4. #4
    Vonais's Avatar
    Vonais is offline Power Member
    Join Date
    Oct 2013
    Location
    My room
    Posts
    603
    Thanks
    127
    Thanked 312 Times in 161 Posts

    Default Re: iMacros Question - need help

    Bleh, in java this would be pretty simple, dunno bout Imacros. Mind posting your script here so we can see what you're doing? As someone stated before, copy pasting is always a good option if it is only one line of code...

  5. #5
    45415 is online now Jr. VIP
    Join Date
    Feb 2009
    Posts
    191
    Thanks
    132
    Thanked 87 Times in 56 Posts

    Default Re: iMacros Question - need help

    You can use Javascript Scripting Interface.

    The following code will open google.com once, then open yahoo.com 3 times. It will also display the current loop number.
    Code:
    var macro;
    macro =  "CODE:";
    macro +=  "URL GOTO=http://google.com" + "\n";
    
    
    var macro2;
    macro2 =  "CODE:"; 
    macro2 +=  "URL GOTO=http://yahoo.com" + "\n";
    
        
    iimPlay(macro);
    
    for(var i=1;i<=3;i++) {
        iimDisplay(i);
        iimPlay(macro2);    
    }
    Forgot to mention that you should save this code in a file using .js extension, not .iim.
    Last edited by 45415; 12-27-2013 at 07:09 PM. Reason: .js instead of .iim

  6. The Following User Says Thank You to 45415 For This Useful Post:

    Ming the Merciless (12-28-2013)

  7. #6
    Ming the Merciless's Avatar
    Ming the Merciless is online now MonsterSquad
    Join Date
    Sep 2012
    Location
    United States
    Posts
    522
    Thanks
    555
    Thanked 464 Times in 231 Posts

    Default Re: iMacros Question - need help

    Thanks for the responses guys. I do not want to post the macro in public for obvious reasons (will give away the site). I need to look into it further but it looks like 45415 (cool name btw) helped me out tons. Thanks again.....

  8. #7
    luiphe88 is offline Newbies
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: iMacros Question - need help

    Thank you very much


Similar Threads

  1. iMacros Question
    By MUSICMOON010203 in forum General Programming Chat
    Replies: 2
    Last Post: 02-02-2013, 04:52 PM
  2. iMacros Question
    By Kontroller in forum Black Hat SEO
    Replies: 0
    Last Post: 10-02-2011, 04:13 PM
  3. iMacros Question
    By Kontroller in forum Black Hat SEO
    Replies: 2
    Last Post: 09-08-2011, 11:38 PM
  4. iMacros Question
    By Kontroller in forum Black Hat SEO
    Replies: 2
    Last Post: 08-31-2011, 11:55 AM
  5. Imacros Question
    By scott8610 in forum Black Hat SEO
    Replies: 1
    Last Post: 04-24-2010, 12:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108