_FFSetValue Problem

  • Hi,
    hier ist der HTML-Quellcode

    Spoiler anzeigen

    <b id="BATTERY_2"></b>
    <form name="auktion_1" action="indexInternal.es" method="post" onsubmit="document.getElementById('sbmt_1').style.display='none';document.getElementById('wait_1').style.display='inline';"><input type="hidden" name="reloadToken" value="ad35339126fe36e9db19058fb28e590a">
    <input type="hidden" name="action" value="internalHandel">

    <input type="hidden" name="subAction" value="bid">
    <input type="hidden" name="bazarID" value="1">
    <tr>
    <td class="trade_img"><img src="xxx" width="63" height="63" alt=""></td>
    <td class="trade_item">text<br>Höchstbieter: <span class="fliess10px-gelb">name</span></td>
    <td class="trade_buy">
    <span class="trade_buy_price fliess11px-gelb"><strong>xxx</strong></span>

    <a href="JavaScript:void(0)" class="trade_buy_button" onclick="showQuantityManager('battery');"><img src="xxx" width="102" height="18" alt="Sofort kaufen"></a>
    </td>
    <td class="trade_bid">
    <input type="text" name="amount" class="trade_bid_price fliess11px-gelb"><br>
    <input id="sbmt_1" class="trade_bid_button_submit" type="image" src="xxx">
    <img id="wait_1" class="trade_bid_button_wait" src="xxx">
    </td>
    </tr>
    </form>

    <tr>
    <td colspan="5" class="trade_separator_horizontal"></td>
    </tr>

    <b id="BATTERY_3"></b>
    <form name="auktion_37" action="indexInternal.es" method="post" onsubmit="document.getElementById('sbmt_2').style.display='none';document.getElementById('wait_2').style.display='inline';"><input type="hidden" name="reloadToken" value="ad35339126fe36e9db19058fb28e590a">
    <input type="hidden" name="action" value="internalHandel">
    <input type="hidden" name="subAction" value="bid">
    <input type="hidden" name="bazarID" value="37">
    <tr>

    <td class="trade_img"><img src="xxx" width="63" height="63" alt=""></td>
    <td class="trade_item">text<br>Höchstbieter: <span class="fliess10px-gelb">name</span></td>
    <td class="trade_buy">
    <span class="trade_buy_price fliess11px-gelb"><strong>xxx</strong></span>
    <a href="JavaScript:void(0)" class="trade_buy_button" onclick="showQuantityManager('battery2');"><img src="xxx" width="102" height="18" alt="Sofort kaufen"></a>
    </td>
    <td class="trade_bid">

    <input type="text" name="amount" class="trade_bid_price fliess11px-gelb"><br>
    <input id="sbmt_2" class="trade_bid_button_submit" type="image" src="xxx">
    <img id="wait_2" class="trade_bid_button_wait" src="xxx">
    </td>
    </tr>
    </form>
    <tr>
    <td colspan="5" class="trade_separator_horizontal"></td>
    </tr>

    Und hier mein Skript

    Spoiler anzeigen

    #include <FF.au3>

    _FFStart ("---URL---")
    _FFSetValue("1", "amount", "name")

    So, habe noch etwas anderes ausprobiert funktioniert aber nicht. Ich möchte gerne ,dass das Skript bei beiden bzw. es kommen noch mehr Objekte dazu, einen Wert von 1 einträgt. Da nun aber das element name "amount" überall gleich ist und ,wenn ich das skript starte nur bei dem ersten Objekt ein Wert gesetzt wird, muss ich anders denken.
    Ich habe schon probiert von der id her das Objekt zu bestimmen also mit "BATTERY_2" bzw. "BATTERY_3"

    MFG Blacki

    Vll. weiß ja einer von euch wie man das osnst noch lösen kann

  • Versuchs mal mit dem optionalen Indexparameter. Eventuell wirst du ein wenig testen müssen um den richtigen Index rauszufinden.

    [autoit]


    _FFSetValue("1", "amount", "name",0)
    _FFSetValue("1", "amount", "name",1)
    _FFSetValue("1", "amount", "name",2)
    _FFSetValue("1", "amount", "name",3)
    ;...

    [/autoit]
  • Du bist der beste ;)
    Hat gleich funktioniert

    BIG THX

    hab das mit dem parameter voll verpeilt gehabt

    hmmmm wie lautet der Befehl für IE nochmal ?