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

[IMACROS ] how to skip an error with imacros ?

Discussion in 'Other Scripting Languages' started by Giederius, Apr 9, 2013.

  1. Giederius

    Giederius Junior Member

    Joined:
    Jan 20, 2013
    Messages:
    128
    Likes Received:
    14
    Hello! I'm really a noob at programming but i used to learn how to program with pascal in school and I don't remember anything :D So i know there are if, while and etc. So the problem is, I receive this error while running the script. "RuntimeError: element TEXTAREA specified by ID:commentbody was not found, line: 4 (Error code: -921)" how do i bypass it without making the program crash ? I know there is a way to do this. If happens A(error, can't find th textbox), then go to B(hit next and comment another picture) and do it so on.. How to write that If happens A then go to B ? I just can't figure it out..
     
  2. delo01

    delo01 Power Member

    Joined:
    May 18, 2012
    Messages:
    608
    Likes Received:
    126
    Occupation:
    Designer
    Location:
    jobscrush.com
    Home Page:
    Set !errorignore yes
     
    • Thanks Thanks x 1
  3. Winternacht

    Winternacht Junior Member

    Joined:
    Jan 7, 2011
    Messages:
    113
    Likes Received:
    46
    use 'SET !ERRORIGNORE YES' at the beginning of your scruipt, then the macro will continue even when there is a error on a certain command.
     
    • Thanks Thanks x 1
  4. Giederius

    Giederius Junior Member

    Joined:
    Jan 20, 2013
    Messages:
    128
    Likes Received:
    14
    Thank you very much! It worked!
     
  5. BaMoon

    BaMoon Newbie

    Joined:
    May 10, 2013
    Messages:
    20
    Likes Received:
    3
    you can set !ERRORIGNORE YES