Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
Delphi 5 Professional
|
Re: twebbrowser button ohne form!!
25. Sep 2005, 12:02
Delphi-Quellcode:
var
WebDoc: IHTMLDocument2;
WebElement: IHTMLElement;
WebButton: IHTMLButtonElement;
I: Integer;
begin
WebDoc := WebBrowser1.Document as IHTMLDocument2;
for I := 0 to WebDoc.all.length - 1 do
begin
WebElement := WebDoc.all.item(I, 0) as IHTMLElement;
if Supports(WebElement, IID_IHTMLButtonElement, WebButton) then
if WebButton.value = 'blablabla' then
WebElement.click;
end;
end;
Ciao, Sprint.
"I don't know what I am doing, but I am sure I am having fun!"
|