Autor Beitrag
undergroundgamer
Hält's aus hier
Beiträge: 5

WinXP Pro SP2
Borland Developer Studio 2006 & Visual Studio.net 2005
BeitragVerfasst: Do 19.01.06 19:48 
ja das hätte ich gern gewusst ob es möglich ist und wenn ja wie.
bei mir wird immer nur 1 prozess beendet ...
schonmal danke für eure hilfe dafür gibs bestimmt ne
ganz einfache antwort wo ich nicht drauf gekommen bin

und das ist mein quellcode
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
procedure TForm7.Button1Click(Sender: TObject);
begin
h := FindWindow('IEFrame',nil);
  if h <> 0 then SendMessage(h, WM_SYSCOMMAND, SC_CLOSE, 0);
Progressbar1.Min:=0;
Progressbar1.Max:=80000;
 for I:=0 to 10000-1 do Progressbar1.Position:=I;
Progressbar1.Min:=0;
Progressbar1.Max:=80000;
 for I:=10000 to 20000-1 do Progressbar1.Position:=I;
h := FindWindow('IEFrame1',nil);
  if h <> 0 then SendMessage(h, WM_SYSCOMMAND, SC_CLOSE, 0);
Progressbar1.Min:=0;
Progressbar1.Max:=80000;
 for I:=20000 to 30000-1 do Progressbar1.Position:=I;
h := FindWindow('IEFrame2',nil);
  if h <> 0 then SendMessage(h, WM_SYSCOMMAND, SC_CLOSE, 0);
Progressbar1.Min:=0;
Progressbar1.Max:=80000;
 for I:=30000 to 40000-1 do Progressbar1.Position:=I;
h := FindWindow('IEFrame3',nil);
  if h <> 0 then SendMessage(h, WM_SYSCOMMAND, SC_CLOSE, 0);

end;


Moderiert von user profile iconTino: Delphi-Tags hinzugefügt
Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Di 21.04.2009 um 15:09
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Di 21.04.09 14:02 
Hallo,

vielleicht hilft dir DestroyWindow(h); nach dem Schließen oder h := 0; weiter.

MfG
Regan