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

My first bot with imacros

Discussion in 'Other Languages' started by peterr33, Jan 31, 2010.

  1. peterr33

    peterr33 Registered Member

    Joined:
    Jan 29, 2010
    Messages:
    72
    Likes Received:
    3
    Hello,

    I have a problem with filling in a text area.
    See code below.

    VERSION BUILD=6880125
    TAB T=1
    TAB CLOSEALLOTHERS
    URL GOTO=http://www.speurders.nl/
    TAG POS=1 TYPE=STRONG ATTR=TXT:Inloggen
    TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/login.php ATTR=ID:login_layer_us_email CONTENT=sanne6000@mijn-email-adres.nl
    TAG POS=1 TYPE=INPUT:pASSWORD FORM=ACTION:/login.php ATTR=ID:login_layer_us_password CONTENT=123456
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/login.php ATTR=VALUE:Inloggen
    TAG POS=1 TYPE=A ATTR=TXT:Mijn<SP>Speurders
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:/lopend/ ATTR=ID:all_ads&&VALUE:eek:n CONTENT=YES
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/lopend/ ATTR=NAME:action_delete
    TAG POS=1 TYPE=SPAN ATTR=TXT:Archief<SP>(1)
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:/archief/ ATTR=ID:all_ads&&VALUE:eek:n CONTENT=YES
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/archief/ ATTR=NAME:action_delete
    TAG POS=1 TYPE=SPAN ATTR=TXT:Maak<SP>nieuwe<SP>advertentie
    TAG POS=1 TYPE=SELECT FORM=ACTION:/place.php ATTR=ID:ad_cat_id CONTENT=15
    TAG POS=1 TYPE=LABEL ATTR=TXT:Subrubriek
    TAG POS=1 TYPE=SELECT FORM=ACTION:/place.php ATTR=ID:ad_subcat_id CONTENT=15
    TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/place.php ATTR=ID:ad_title CONTENT=Zin<SP>in<SP>een<SP>lekkere<SP>sexdate
    FRAME F=1
    FRAME F=0
    TAG POS=1 TYPE=TEXTAREA FORM=ACTION:/place.php ATTR=ID:ad_description CONTENT=Hallo
    TAG POS=1 TYPE=SELECT FORM=ACTION:/place.php ATTR=ID:ad_options_price CONTENT=3
    TAG POS=1 TYPE=FIELDSET ATTR=ID:fs_files
    FRAME F=2
    TAG POS=1 TYPE=OBJECT ATTR=ID:SWFUpload_0
    FRAME F=0
    TAG POS=10 TYPE=DIV ATTR=TXT:<SP>
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/place.php ATTR=ID:btn_place
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/nogteplaatsen/ ATTR=NAME:action_place
    ONDIALOG POS=1 BUTTON=OK CONTENT=
    ONDIALOG POS=2 BUTTON=OK CONTENT=
    TAG POS=1 TYPE=A ATTR=ID:logout

    What am I doing wrong? The field is not filled.

    Greet,
    Peter Vermeer
     
    • Thanks Thanks x 1
  2. 1link

    1link Registered Member

    Joined:
    Dec 9, 2008
    Messages:
    93
    Likes Received:
    196
    try using the X,Y cordinates option for recording rather than tags. Try it and let me know if it solved your problem.
     
  3. peterr33

    peterr33 Registered Member

    Joined:
    Jan 29, 2010
    Messages:
    72
    Likes Received:
    3
    Have tried, but provides much more error messages on.

    Where the only thing wrong with the above code, the ad description.

    This is the html code of the page in question.

    HTML CODE:
    <fieldset id="fs_description">
    <legend><span class="required">Omschrijving</span></legend>
    <ul>
    <li class="wo_label" >
    <textarea rows="5" cols="50" name="ad_description" id="ad_description" class="required validate-nourlpay" title="Omschrijving"></textarea>

    <span class="tip" onmouseover="tooltip2.show(this,'<b>Omschrijving</b><p>Geef hier een zo volledig mogelijke omschrijving van uw product of dienst. Geef bijvoorbeeld informatie over afmetingen, aansluitmogelijkheden, gebruikssporen of een bijzondere geschiedenis. Geef ook informatie over manieren van betaling en/of verzending. Bovendien kunt u geïnteresseerde kopers doorverwijzen naar uw eigen website, hiervoor kunt u gebruik maken van het veld website vermelding hieronder.</p>');" onmouseout="tooltip2.hide();"> </span> </li>
    </ul>
    </fieldset>
     
  4. Phil25

    Phil25 Newbie

    Joined:
    Dec 23, 2009
    Messages:
    29
    Likes Received:
    4
    You might want to look at targeting the correct field with relative positioning


    Code:
    TAG POS=2 TYPE=DIV ATTR=TXT: insert text before the field here
    TAG POS=R2 TYPE=TEXTAREA FORM=ACTION:/place.php ATTR=ID:ad_description CONTENT=Hallo 
     
    This will tell your script where to start filling the forms from.

    There is more info in the imacros wiki in "extract with relative positioning"

    Just don't use the extract commands...
     
  5. christoss1959

    christoss1959 Senior Member

    Joined:
    Nov 25, 2010
    Messages:
    894
    Likes Received:
    1,150
    Home Page:
    Why don't you try recording the script? That should give you an indicator of what you should do to fill the text
     
  6. JackSparrow

    JackSparrow Supreme Member

    Joined:
    Mar 24, 2007
    Messages:
    1,469
    Likes Received:
    2,054
    Occupation:
    Semi-Employed Pirate
    Location:
    search 4 blackhatsparrow
    Home Page:
    ?????????
     
    Last edited: Feb 10, 2011
  7. zelma143

    zelma143 Power Member

    Joined:
    Jun 25, 2010
    Messages:
    571
    Likes Received:
    37
    Occupation:
    PHP programmer,Bot maker,iMacro script maker
    hey let me know on yah** or P-M..

    I can get this solved..

    thx
     
  8. phpforfun

    phpforfun Newbie

    Joined:
    Mar 30, 2011
    Messages:
    19
    Likes Received:
    3
    Wow, ive never even seen that type of code, lol