Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 09.12.03 10:12 
Hallo,
ich habe ein memo dort soll der gesammte text in dem atkieven broweser gesendet werden.

z.b. in ein memo bei einem formula auf einer HP,
man soll das memo auto. suchen lassen können und man soll es manuell aussuchen können,
wie geht das am besten?

_________________
MFG
Michael Springwald, "kann kein englisch...."
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 09.12.03 14:26 
musste eventuell noch umformen....



ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
var
  hIE: HWND;
  ShellWindow: IShellWindows;
  WB: IWebbrowser2;
  spDisp: IDispatch;
  IDoc1: IHTMLDocument2;
  Document: Variant;
  k, m: Integer;
  ovElements: OleVariant;
  i: Integer;
begin
  ShellWindow := CoShellWindows.Create;

  for k := 0 to ShellWindow.Count do
  begin
    spDisp := ShellWindow.Item(k);
    if spDisp = nil then Continue;
   
    spDisp.QueryInterface(iWebBrowser2, WB);

    if WB <> nil then
    begin
      WB.Document.QueryInterface(IHTMLDocument2, iDoc1);
      if iDoc1 <> nil then
      begin
        WB := ShellWindow.Item(k) as IWebbrowser2;
        begin
          Document := WB.Document;

          for m := 0 to Document.forms.Length - 1 do
          begin
            ovElements := Document.forms.Item(m).elements;
       
            for i := 0 to ovElements.Length - 1 do
            begin
      
              try
                if (CompareText(ovElements.item(i).tagName, 'INPUT') = 0) and
                  (CompareText(ovElements.item(i).type, 'text') = 0) then
                begin
                  ovElements.item(i).Value := 'FindWindow';
                end;
              except
              end;
        
              try
                if (CompareText(ovElements.item(i).tagName, 'INPUT') = 0) and
                  (CompareText(ovElements.item(i).type, 'SUBMIT') = 0) and
                  (ovElements.item(i).Value = 'Search') then  // Suchen für German
                begin
                  ovElements.item(i).Click;
                end;
              except
              end;
            end;
          end;
        end;
      end;
    end;
  end;


gruß

ixtreme.de
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 09.12.03 14:49 
ok, danke werde ich testen.

_________________
MFG
Michael Springwald, "kann kein englisch...."
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 09.12.03 15:13 
übrigens danke das du uns mozilla user von deiner seite aussperrst..


Zitat:
'; $load='1'; } elseif ($screen='1024'){ $write=' '; $load='1'; }; }; ?>



oder beinhaltet deine seite nicht mehr ? :-)
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 09.12.03 15:15 
nein, nur wegen der automatischen abfrage, welche bildschrim größe du eingestellt hast. aber ich werde das noch so machen, das der user das halt selbst aussuchen muss *G*

_________________
MFG
Michael Springwald, "kann kein englisch...."
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 09.12.03 15:25 
da steht ja ich kann mich entscheiden zwischen 800 * 600 und 1024 * 768, doch wenn ich irgendwo drauf klicke kommt der text wie oben erwähnt...



gruß

ixtreme.de
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 09.12.03 19:21 
seltsamm, ich werde dennäst aber die seite komplet ändern, dann werden offentlich auch alle drauf zugrief haben

_________________
MFG
Michael Springwald, "kann kein englisch...."