1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Having trouble with imacros browser...

Discussion in 'General Scripting Chat' started by Ranko Jones, Jul 23, 2011.

  1. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    I have scripting edition but the browser seems alot more sucky than firefox so far.

    I am only using it cos I want to use the image recognition for captcha setup.

    I made an initial signup macro in firefox which takes me thru data input of name, email etc, over to captcha.

    Works fine in firefox.

    I wanted to load it in the macros browser but it didn't work. So I try making a new one just in the browser and it still doesn't work.

    1st of all the pages aren't loading the same in the macros browser.

    I did the mouse clicks for the user fields but the browser doesn't seem to pick them up or put input into them.

    It will load the page then just freewheel as I watch the timer going up not moving to the next operation.

    So any ideas how to get past these teething troubles?
     
  2. sirgold

    sirgold BANNED BANNED

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    I feel ya, I grew wary myself of the scripting edition. imacros browser had so many inconsistencies for me that I eventually had to ditch it for the ff edition once and for all.

    Only great thing of the scripting edition is the com interface for the external languages, but it's not a biggie since you can do most of the stuff with js. Also DS is great, but nothing you can't replicate with a few lines of vbs.
     
  3. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    Wow slow down with the acronyms chief I'm still new to scripting :D.

    You say you ditched it for the FF edition but how do you work it without the browser features?

    I am trying to set it up to save captchas but it is getting frustrating cos of all these stupid unintuitive hiccups. Image recog. isn't available for FF and they say it is available for internet explorer plugin but I installed that and there but there is no option for image recognition.

    Can I still captcha solve without this bullshit browser version? I tried it but the images aren't picked up in FF.

    The developers seem to have deliberately wanted you to go with their crappy browser version so you'd buy it. Understandable but don't make it FAR WORSE than the free version...

    So is there a workaround so that I can still use ff version while ditching this crappy browser completely or somehow getting browser to work for me?

    Otherwise can I do most tasks the same with winautomation (I just wanna sign up to web2.0s etc. and submit, beat captchas, the usual shit replacing the softwarezz)? cos that program seems much more intuitive and user friendly. The main reason I've been giving imacros a good go first is cos it seems to have a larger community which would be more helpful while I'm learning.

    I was starting to get the hang of imacros until this browser crap has really put a spanner in the works and salted my opinion of it.
     
    Last edited: Jul 23, 2011
  4. sirgold

    sirgold BANNED BANNED

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    Yes, precisely what I did. iMacros is quite cozy, cross-platform (I never run web ui / automation on win, once it's ready to deploy.. :D) and free if want to go legit, scale your service up and offer it for a fee. I find it way better than selenium, watin/watir for a lot of reasons... Anyways enough with the small talk.

    I do not use the image recognition of imacros, I use real "stuff" for captchas... ;) Save the captcha, process it with your desktop program and fill the blanks back with imacros.

    Something like the following code works for me on ff to save the pic (you can take a screenshot if this is tricky for some reason...). Just go to your imacros / download folder and proceed accordingly if you have a server-side captcha solving solution. If you don't there are services out there for a small fee that help solving captchas for you like:

    http://www.captchabuster.com/iMacros.aspx (first link I stumbled upon with g...)

    With sample code. HTH.

    Code:
    URL GOTO=http://www.iopus.com/imacros/demo/v5/images/   
    'You can *start* the loop at another value with SET !LOOP. The default start value is 1. 
    'Since the SET !LOOP command sets a START value, it works only at the first loop.
    'SET !LOOP 2
    TAG POS={{!loop}} TYPE=IMG ATTR=HREF:http://*.jpg  
    '
    'You can use the FOLDER=* part of the ONDOWNLOAD command to define another download directory
    'And you can overwrite the automatic file name generation by replacing
    'FILE=+_{{!NOW:yyyy***d_hhnnss}}  
    'with 
    'FILE=yourname.ext 
    '
    '
    ONDOWNLOAD FOLDER=* FILE=+_image_{{!NOW:yyyy***d_hhnnss}}  
    '
    'Download the picture
    TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM
    '
    'You can also use the EVENT:SAVE_ELEMENT_SCREENSHOT command instead
    'TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT 
    '
    'Or you can take a snapshot of the complete web page
    'SAVEAS TYPE=BMP FOLDER=* FILE=MySnapshot_{{!NOW:yyyy***d_hhnnss}}.bmp 
    '
    'Give the user time to press PAUSE 
    WAIT SECONDS=3
    '
    'Go back to start page
    'Use !urlstart if you removed the URL GOTO= command at the top of the macro
    'URL GOTO={{!urlstart}}
    
    
     
    • Thanks Thanks x 1
  5. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    Cheers mate.

    I'll give this a go tomorrow.

    Can you explain to me what it's doing vs. what the image thing would do?

    Guess I'll get an idea when I try but additional explanation of the operations would help my understanding (as I said I'm still new to this stuff).

    Mainly, how is this gonna recognize the image whereas it didn't when I tried by default (by right clicking and save as while recording)?

    Also, I use deathbycaptcha but I guess you;d just change the relevant info.

    Hmm when you said screenshot that gave me an idea. Another poss solution could be to print screen with winautomation right? and crop it or whatever. Though that might make things more complex than required getting multiple programs in the mix triggering them at the right moments and whatnot.
     
    Last edited: Jul 23, 2011
  6. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    Another thing...

    Is there a way to get it to stop defaulting to 'current' each time when recording?

    It is a nuisance when I'm editing a file I'm working on and when I hit record expecting to record in the working file it defaults to 'current'.

    Also can I record/play from X operation rather than have to start @ the beginning each time?
     
  7. sirgold

    sirgold BANNED BANNED

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    If by "recognize" you mean solve the captcha it won't obviously. You'll need to either use a 3rd party online service like deathbycaptcha or a homebrewed captcha solver on your pc/server.

    If you mean how it's gonna extract and download the right captcha image for further processing, well imacros has a pretty powerful mechanism to select the tag with the DOM attributes you specify so you just need to make sure to extract the image with the appropriate css style / id. You can even specify just the name of the tag and there's an incremental counter to nail the right element. Worst case scenario you can specify X / Y coordinates but only for elements on page that are NOT applets (like flash, java, silverlight) and that's where their proprietary DS technology would really shine... Nothing you can't do with vbs or winautomation or whatever technology that can simulate a real mouse click or keystroke.

    Yes, imacros will exactly take a screenshot of the browser page the way you could do with winautomation but without the need to scroll down should the page be not entirely visible on the browser area (imacros will take the full page regardless). It's up to you to crop / edit / resize it after imacros saved this screenshot with a server-side technology in order to automate the whole fun.
     
  8. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    Hmm, I get errors each time I try and save:

    If I try and right click and save as it seems to recognize a click but I got:

    Code:
    SyntaxError: wrong format of URL command, line: 4 (Error code: -910)
    for code:

    Code:
    TAB T=1
    ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyy***d_hhnnss}} WAIT=YES
    URL GOTO=http://www.squarespace.com/ CONTENT=EVENT:SAVEPICTUREAS
    Also the code you gave in your example I get this error message:

    Code:
    BadParameter: file name contains illegal character(s), line: 14 (Error code: -911)
    also related to download code:

    Code:
    ONDOWNLOAD FOLDER=* FILE=+_image_{{!NOW:yyyy***d_hhnnss}}  
     
  9. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    I'm just trying to make sense of your code as well as other examples and I don;t get where imacros gets the instructions for the actual position of the pic you want to save (other than if you were taking the whole screen route in which case it would bag it all)?
     
  10. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    get out my thread spamming bitch.
     
  11. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    Interesting...

    The internet explorer version seems to be working best for me.

    I got errors when I tried to run your script in FF but it worked fine in IE. So think I'll stick to IE for now and try and backwards engineer your macro.
     
  12. sirgold

    sirgold BANNED BANNED

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    Code:
    'Download the picture
    TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM
    
    Try using firefox 3.6 portable edition. That's what I generally use to code my ff automation chores. ;)

    And have a look here in case you haven't already.
    http://wiki.imacros.net/Command_Reference

    HTH
     
  13. Ranko Jones

    Ranko Jones BANNED BANNED

    Joined:
    Mar 3, 2011
    Messages:
    1,677
    Likes Received:
    146
    I moved over to winautomation as imacros was becoming mindbendingly frustrating.

    Winautomation isn't much better.

    I want to kill myself learning these fucking things.

    Would you be able to give me some training in exchange for some SEO? Maybe some AMR or scrapebox AA blasts?