My first bot with imacros

peterr33

Registered Member
Joined
Jan 29, 2010
Messages
72
Reaction score
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 [email protected]
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:on 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:on 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
 
try using the X,Y cordinates option for recording rather than tags. Try it and let me know if it solved your problem.
 
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>
 
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...
 
Why don't you try recording the script? That should give you an indicator of what you should do to fill the text
 
hey let me know on yah** or P-M..

I can get this solved..

thx
 
Back
Top