Autor Beitrag
Hendrik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Sa 17.05.03 18:36 
Hi

Ich möchte ein Programm, das beim Start nur ein Windosmessage verschickt und sich dann wieder schließt im Hintergrund ausführen, so dass es nicht den Fokus erhält und sich z.B. Spiele minimieren.

Wie geht das?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 18.05.03 10:55 
also ich weiss nicht wirklich, was du jetzt mit diesem verworrenen text meinst, aber ich denke mir mal, dass dein proggi unsichtbar sein soll.

ausblenden Delphi-Quelltext
1:
application.ShowMainForm := false;					

_________________
In the beginning was the word.
And the word was content-type: text/plain.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 18.05.03 11:15 
Warum so umständlich, matze? Man nimmt den Texteditor und schreibt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
uses
  Windows;

begin
  MessageBox(0,'Voilà','Hallo, Welt!',0);
end.

speichert das ganze als DPR-Datei und kompiliert es. Fertig ist ein Miniprogramm, das eine kurze Dialogbox anzeigt und sich danach wieder beendet. Nach diesem Prinzip kann Hendrik dann auch seine Idee umsetzen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 18.05.03 17:11 
ok hast recht !!! :roll:

_________________
In the beginning was the word.
And the word was content-type: text/plain.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 18.05.03 17:13 
Ich weiß.
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: So 18.05.03 17:34 
Hallo

Also wenn ich mich n bischen unklar ausgedrückt habe schreibe ich es nochmal:

Mein proggi verschickt beim starten, genauer gesagt bei form1.show über die Procedure WINDOWSMESSAGE ein message an ein anderes Programm und schließt sich dann wieder, daher muss ich ja die Form1 "showen" lassen. Nur würde ich das gerne im Hintergrund machen...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 18.05.03 18:24 
da gehen beide möglichkeiten. nimm aber die von "herrn simmack" ( ;-) ) denn die ist platzsparender !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.05.03 06:17 
Zu liebenswürdig, Herr ... Herr ... äh ... matze. :mrgreen: