Autor Beitrag
jaenschi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

Win XP, Debian
D7
BeitragVerfasst: So 27.03.05 11:31 
Hallo,
ich möchte gerne die Texte aus meinen geöffneten Mirandafenstern auslesen. Bei einem Fenster Funktioniert das auch ganz gut. Ich finde die Fenster immer mit Hilfe der Fensterklasse, da die bei allen Fenstern gleich ist. Wie finde ich jetzt aber alle Fenster und nicht nur das erste?
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 27.03.05 11:38 
Suche in: Delphi-Forum, Delphi-Library "ENUMWINDOWS" würde ich da mal in den Raum werfen.
Arnulf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46



BeitragVerfasst: So 27.03.05 12:03 
ausblenden Delphi-Quelltext
1:
  EnumWindows(@EnumWinProc, 0);					


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
function EnumWinProc(Wnd: THandle; LParam: LongInt): Boolean; stdcall;
var
 WinCaption : string;
 Len: integer;
begin
 Result := True;
 Len := GetWindowTextLength(Wnd);
 SetLength(WinCaption, Len);
 GetWindowText(Wnd, PChar(WinCaption), Len+1);
 if Trim(WinCaption) <> ''
 then begin
      Form1.Listbox1.Items.Add(Format('%.6x : %s', [Wnd, WinCaption]));
      end;
end;
jaenschi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

Win XP, Debian
D7
BeitragVerfasst: So 27.03.05 13:20 
THX :D
Genau das, was ich gesucht habe *freu*