AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Formular ausfüllen für upload
Thema durchsuchen
Ansicht
Themen-Optionen

Formular ausfüllen für upload

Ein Thema von Logic · begonnen am 11. Jul 2006 · letzter Beitrag vom 11. Jul 2006
Antwort Antwort
capo

Registriert seit: 7. Jul 2006
453 Beiträge
 
Delphi 11 Alexandria
 
#1

Re: Formular ausfüllen für upload

  Alt 11. Jul 2006, 16:51
hab da was gefunden

Delphi-Quellcode:
procedure TForm1.SetFilename(Value: WideString);

var

  Doc: IHTMLDocument2;

  Elements: IHTMLElementCollection;

  Element: IHTMLElement;

  InputElement: IHTMLInputElement;

  I, j: Integer;

  FormItem: Variant;

  pch: PChar;

  str1: string;

begin

  str1 := Value; //convert input value to string

  pch := PChar(str1); //type cast to pointer



  Doc := WebBrowser1.Document as IHTMLDocument2;

  Elements := Doc.all;

  for I := 0 to Elements.length - 1 do

  begin

    Element := Elements.item(I, EmptyParam) as IHtmlElement;

    if Element.tagName = 'INPUTthen

    begin

      InputElement := Element as IHTMLInputElement;

      if (SameText(InputElement.type_, 'file')) and

        (SameText(InputElement.Name, 'RemoteName')) then

      begin

        FormItem := InputElement;

        FormItem.Focus;

        SendKeys(PCh, False); // NOTE the false flag

      end;

    end;

  end;

end;
quelle:
http://groups.yahoo.com/group/delphi...r/message/6832

gruss, capo
Hotte
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz