Brauche Hilfe bei AutoIt Autofiller

11/17/2018 16:41 Hexer71#1
Hallo ihr lieben ! Bin ein absoluter Auto-It- Anfänger, und wollte mir für ein Game
ein kleines Autofiller-Tool erstellen. Problem ist, wenn ichs starte füllt er das gewünschte Formular nicht aus. :) Könnte mir vielleicht schon jemand sagen warum ? Mein Code und einen Ausschnitt des Quelltextes hab ich mal reinkopiert.



 
#include <IE.au3>
$oIE = _IECreate ("http://galaxywars.dlxg.de/game.php?page=fleet")
_IELoadWait($oIE,0)
$Schlachtschiffe = "60"
$oForm = _IEFormGetObjByName ($oIE, "ship207")
$oSchlachtschiffe = _IEFormElementGetObjByName ($oForm, "value")
_IEFormElementSetValue ($oSchlachtschiffe,$Schlachtschiffe)
_IEFormSubmit($oForm)
Sleep (8000)
_IEQuit ($oIE)



Quelltext :

<th colspan="4">Neuer Auftrag: Flotte wählen</th>
</tr>
<tr style="height:20px;">
<td>Schiffstyp</td>
<td>Verfügbar</td>
<td>-</td>
<td>-</td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 75000">Kreuzer</a></td>
<td id="ship206_value">35</td>
<td><a href="javascript:maxShip('ship206');">max</a></td>
<td><input name="ship206" id="ship206_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 62000">Schlachtschiff</a></td>
<td id="ship207_value">7.030</td>
<td><a href="javascript:maxShip('ship207');">max</a></td>
<td><input name="ship207" id="ship207_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 12500">Kolonieschiff</a></td>
<td id="ship208_value">6</td>
<td><a href="javascript:maxShip('ship208');">max</a></td>
<td><input name="ship208" id="ship208_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 350000000">Spionagesonde</a></td>
<td id="ship210_value">418</td>
<td><a href="javascript:maxShip('ship210');">max</a></td>
<td><input name="ship210" id="ship210_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td>Solarsatellit</td>
<td id="ship212_value">1.800</td>
<td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 1240">Todesstern</a></td>
<td id="ship214_value">206</td>
<td><a href="javascript:maxShip('ship214');">max</a></td>
<td><input name="ship214" id="ship214_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 5580">Lune Noire</a></td>
<td id="ship216_value">547</td>
<td><a href="javascript:maxShip('ship216');">max</a></td>
<td><input name="ship216" id="ship216_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 37200">Evolution Transporter</a></td>
<td id="ship217_value">51</td>
<td><a href="javascript:maxShip('ship217');">max</a></td>
<td><input name="ship217" id="ship217_input" size="10" value="0"></td>
</tr>
<tr style="height:20px;">
<td> <a title="Geschwindigkeit: 46500">Gigarecycler</a></td>
<td id="ship219_value">44</td>
<td><a href="javascript:maxShip('ship219');">max</a></td>
<td><input name="ship219" id="ship219_input" size="10" value="0"></td>
</tr>






Wenn ich das Script starte bekomme ich folgende Fehlermeldungen :

IE.au3 T3.0-2 Warning from function _IEFormGetObjByName, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormSubmit, $_IESTATUS_InvalidDataType
11/17/2018 17:59 Serraniel#2
#moved