User Tag List

11011Views
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Coder Chillivanilli's Avatar




    Join Date
    Jul 2014
    Posts
    1,200
    Coins
    103
    Thumbs Up
    Received: 273
    Given: 128

    [iMacros] Got questions? Ask me!

    Hi everybody.

    I'm coding advanced iMacros scripts including javascript for about 7 months now and made some good scripts to earn money.
    If you use iMacros yourself and need help, ask me and i'll try to help you as good as i can.

    -Chillivanilli-


    0 Not allowed! Not allowed!

  2. #2
    Moderator BeyondZero's Avatar
    Join Date
    Jul 2014
    Location
    Latvia
    Posts
    232
    Coins
    2
    Thumbs Up
    Received: 208
    Given: 2
    Hey!

    I wanted to know if there is a code that will search for a text or image in the source code (website) and IF there is one do one thing and IF there isn't then just continue.

    Asking to get code something by my self to do captchas automatically

    0 Not allowed! Not allowed!

  3. #3
    Coder Chillivanilli's Avatar




    Join Date
    Jul 2014
    Posts
    1,200
    Coins
    103
    Thumbs Up
    Received: 273
    Given: 128
    When you are using IF statements, javascript is required.
    You can code javascript inside the .iim files, but that will be too complicated.
    I try to explain it as good as i can, because you need a little coding knowledge.

    You can play your .iim files with your .js file with "iimPlay("folder//macro.iim")
    When a macro is played it gives back a number code, either it was successfull (1) or not successfull (<0)
    A full list of the error codes can be viewed here

    To save this return code you need to assign the macro to a variable, for example:
    var returnCode = iimPlay("folder//findImage");

    In the .iim file you have to write the code to find the image or text.
    To find a text inside a html page you can use this code:

    SEARCH SOURCE=TXT:"your text here"
    This will search the whole HTML page, so if you need to find a specific html code, you can also use this.

    To find an image, you need to "inspect element" it.
    I'll try to find the image of your userbar "GUIDE" in this example. So right click on it and click "inspect element"

    You will see this
    To select the image with imacros you will need this code:

    TAG POS=1 TYPE=IMG ATTR=SRC:http://a2s.in/images/ranks/guide.png

    Now we have the .js file which plays the macro and a variable "returnCode" which saves the return code if the macro found that image or not.

    So you will need a simple if statement:

    if (returnCode>0) {
    iimPlay("folder//another_macro_which_is_played_when_image_is_found" );
     }

    else {
    do something else
     }

    I hope this will help you. If you have more questions feel free to ask.

    0 Not allowed! Not allowed!

  4. #4
    Member Lesean13's Avatar
    Join Date
    Jul 2014
    Posts
    60
    Coins
    0
    Thumbs Up
    Received: 1
    Given: 0
    Can you do an imacros for marketglory? wondering if its possible, not asking you to do it.

    0 Not allowed! Not allowed!

  5. #5
    Coder Chillivanilli's Avatar




    Join Date
    Jul 2014
    Posts
    1,200
    Coins
    103
    Thumbs Up
    Received: 273
    Given: 128
    Quote Originally Posted by Lesean13 View Post
    Can you do an imacros for marketglory? wondering if its possible, not asking you to do it.
    Theoreticly yes, but this is a thread where you can ask questions belonging iMacros, not sending requests to make iMacros for you :P
    But apart from this it would be too much work. I don't know marketglory, i just red that it's a browser game and there are too many things to consider.

    0 Not allowed! Not allowed!

  6. #6
    Member Lesean13's Avatar
    Join Date
    Jul 2014
    Posts
    60
    Coins
    0
    Thumbs Up
    Received: 1
    Given: 0
    @Chillivanilli As I said... wasnt making request, I was simply asking if it could be done, and if so, how hard would it be.

    0 Not allowed! Not allowed!

  7. #7
    Coder Chillivanilli's Avatar




    Join Date
    Jul 2014
    Posts
    1,200
    Coins
    103
    Thumbs Up
    Received: 273
    Given: 128
    Quote Originally Posted by Lesean13 View Post
    @Chillivanilli As I said... wasnt making request, I was simply asking if it could be done, and if so, how hard would it be.
    ah ok my mistake
    like i said its possible but i think it will be hard and long work for macing a good iMacros script which is not detectable. but i cannot say that because i don't know the game and what have to be done.

    0 Not allowed! Not allowed!

  8. #8
    Member
    Join Date
    Jan 2015
    Posts
    10
    Coins
    0
    Thumbs Up
    Received: 0
    Given: 0
    @Chillivanilli
    I need a sample new google captcha code for taking screenshot of the captcha.
    The problem is the frame number keeps on changing for each refresh
    sample site - btcfaucetlist.net

    0 Not allowed! Not allowed!

  9. #9
    Coder Chillivanilli's Avatar




    Join Date
    Jul 2014
    Posts
    1,200
    Coins
    103
    Thumbs Up
    Received: 273
    Given: 128
    Quote Originally Posted by gamingmaster View Post
    @Chillivanilli
    I need a sample new google captcha code for taking screenshot of the captcha.
    The problem is the frame number keeps on changing for each refresh
    sample site - btcfaucetlist.net
    I'll take a look into it later, i don't know right now how to do it in iMacrosi had a couple of problems with dynamic iFrames these days, too, so i don't know if i can solve it.
    Now i would say as first but dirty solution: Check all frame numbers per javascript if they contain the element which you select by a id, name, whatever, and if they contain it, make a screenshot and cut out the captcha with the sizes of the element.

    0 Not allowed! Not allowed!

  10. #10
    Member
    Join Date
    Jan 2015
    Posts
    10
    Coins
    0
    Thumbs Up
    Received: 0
    Given: 0
    Quote Originally Posted by Chillivanilli View Post
    I'll take a look into it later, i don't know right now how to do it in iMacrosi had a couple of problems with dynamic iFrames these days, too, so i don't know if i can solve it.
    Now i would say as first but dirty solution: Check all frame numbers per javascript if they contain the element which you select by a id, name, whatever, and if they contain it, make a screenshot and cut out the captcha with the sizes of the element.
    No man... Thats not the prob now... I can bypass the frame numbers easily...
    This is how its done...
    Code:
    TAB T=1
    FRAME NAME=I0*
    TAG POS=1 TYPE=DIV ATTR=ROLE:presentation&&CLASS:recaptcha-checkbox-checkmark&&TXT:
    WAIT SECONDS=2
    FRAME NAME=I1*
    TAG POS=1 TYPE=IMG ATTR=SRC:google.com/recaptcha/*
    TAG POS=1 TYPE=INPUT:TEXT ATTR=* CONTENT=zx
    WAIT SECONDS=2
    TAG POS=4 TYPE=DIV ATTR=TXT:Verify

    Use wildcards.... But the prob verify button is disabled.... Dunno how to enable it.
    I checked the javascript code. But cannot come up with possible solution

    0 Not allowed! Not allowed!

Page 1 of 2 12 LastLast

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
  •