procedure TForm1.Button5Click(Sender: TObject);
begin
//Erstes Formular:
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
spear').value := Edit4.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
sword').value := Edit5.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
axe').value := Edit6.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
spy').value := Edit7.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
light').value := Edit8.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
heavy').value := Edit9.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
ram').value := Edit10.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
catapult').value := Edit11.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
snob').value := Edit12.Text;
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item('
units').Elements.item('
attack').click;
//Pause
WaitBrowser(WebBrowser1);
//Zweites forumular:
WebBrowser1.OleObject.Document.Frames.item('
MAIN').Document.Forms.item(0).Elements.item('
submit').click;
end;
.
.
.
procedure TForm1.WaitBrowser(eWebBrowser: TWebBrowser);
begin
Repeat
Sleep(50);
Application.ProcessMessages;
Until (eWebBrowser.ReadyState = READYSTATE_COMPLETE);
end;