Autor Beitrag
Gerhard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mo 22.09.03 23:08 
Hi,

wie kann man eine fremde Anwendung schließen (beenden)?

Danke für Hinweise!

Gruß Gerhard

Moderiert von user profile iconTino: Titel geändert.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 22.09.03 23:39 
Es gibt zwei Möglichkeiten:
  • Du kennst bzw. ermittelst das Fensterhandle der Anwendung und schickst diesem ein freches WM_CLOSE zu.
  • Du arbeitest mit Prozessen, machst einen so genannten Snapshot und prüft, wann du den Prozess der Anwendung gefunden hast. Den killst du dann.

Passende Suchbegriffe
Suche in: Delphi-Forum, Delphi-Library FINDWINDOW WM_CLOSE
Suche in: Delphi-Forum, Delphi-Library PROZESS SNAPSHOT
Suche in: Delphi-Forum, Delphi-Library PROZESS BEENDEN
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mi 22.10.03 19:21 
Ich habe im Nettz eine schöne Prozedur gefudnen die alle Prozesse die eine bestimmt .exe haben. Aber das killen ist ja nun mal kein vernünftiges Anwendung beenden oder :? gibt es da keine Möglichkeit einer Anwendung eine Nachricht zu schicken, so ähnlich wie es Windows beim beenden tut?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mi 22.10.03 19:47 
Zitat:
gibt es da keine Möglichkeit einer Anwendung eine Nachricht zu schicken, so ähnlich wie es Windows beim beenden tut


Suche in: Delphi-Forum, Delphi-Library WM_CLOSE
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 23.10.03 09:17 

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 23.10.03 09:29 
Und wenn er nicht das Hauptfenster erwischt läuft der Prozess munter weiter. :mrgreen:
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 23.10.03 11:11 
Bei WM_QUIT normalerweise nicht...

Aber notfalls gibt es ja immer noch die Kombination EnumWindows + GetWindowThreadProcessID... ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Fr 24.10.03 18:31 
Danke ich werds mal ausprobieren!
Sacht mal werden dann auch "Wirklich beenden" Meldungen angezeigt?