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



BeitragVerfasst: Di 12.08.03 12:39 
Hey!


Bereits vor einiger Zeit hatte ich mal gefragt, wie ich ein Proggi im Hintergrund und unbemerkt ausführen kann. Ich habe dann den Tipp bekommen application.showmainform:=false; einzufügen. Das alleine reicht aber noch nicht. Das Proggi erscheint nun zwar nicht mehr im Vordergrund, aber wenn ich in einem Proggi drin bin und ne Combobox ausgeklappt habe und mein o.g. Proggi ausgeführt wird, schließt sich die box wieder. Wie kann ich es denn machen, dass es ganz und gar nicht auftaucht?
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 12.08.03 13:42 
Was soll denn das für ein Programm werden?

Gruß
Tino
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 12.08.03 14:23 
Es wird von einem anderen Proggi (nicht von mir) ausgeführt ud bekommt von ihm Parameter übergeben. Diese verschickt es dann über WIndowsmessage an mein Hauptproggi und schließt sich dann wieder.
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 12.08.03 14:37 
Dann stellt sich da die Frage: Warum muss es unbedingt absolut unsichtbar sein? Wäre es nicht sinnvoller, so was als Dienst laufen zu lassen? Schließlich geht es ja scheinbar um Datenverarbeitung oder so.

_________________
Ha! Es compiliert! Wir können ausliefern!
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 12.08.03 14:50 
wenn es sich direkt wieder schließen soll und kein form braucht, dann mach folgendes:

file|new|console application

dann löschst du noch

ausblenden Delphi-Quelltext
1:
{$APPTYPE CONSOLE}					


(oder so ähnlich)

und schreibst den code zwischen begin und end. musst du nur alle komponenten usw. selbst erstellen.[/delphi]
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Di 12.08.03 21:44 
obbschtkuche hat folgendes geschrieben:
wenn es sich direkt wieder schließen soll und kein form braucht, dann mach folgendes:

file|new|console application

dann löschst du noch

ausblenden Delphi-Quelltext
1:
{$APPTYPE CONSOLE}					


(oder so ähnlich)

und schreibst den code zwischen begin und end. musst du nur alle komponenten usw. selbst erstellen.[/delphi]


Hi!


Also bei mir (Delphi 3 Pro) gibts sowas nich...
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 13.08.03 04:54 
Einfacher, nachdem Start von Delphi die unit1 schließen und nicht speichern. Dann die DPR (Project1) bearbeiten. Ein Programm ohne sichtbare Fenster oder Konsolen.

PS: Das ist natürlich genau das, was obbschtkuche geschrieben hat :arrow: nur Versionsunabhängig...

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 13.08.03 08:37 
@Hendrik: Vielleicht antwortest du noch mal auf die Farge
neojones hat folgendes geschrieben:
Dann stellt sich da die Frage: Warum muss es unbedingt absolut unsichtbar sein?

Danke!

Gruß
Tino
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Mi 13.08.03 11:13 
@Tino

Es ist auf die Dauer etwas nervig, wenn 3 mal in der Minute ein sichtbares Fenster aufgeht. Am besten sollte es so sein, dass der User von dem ganzen nichts mitbekommt.

Das ganze nur im Projektquelltext einzutragen, werd ich mal probieren..
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Do 14.08.03 09:11 
ist zwar schon etwas veraltet, aber wenn beide programme auf einem PC laufen, könntest du einen DDE-Server schreiben.
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Do 14.08.03 12:25 
obbschtkuche hat folgendes geschrieben:
ist zwar schon etwas veraltet, aber wenn beide programme auf einem PC laufen, könntest du einen DDE-Server schreiben.


Öhmmm, wasn das?

Und zu dem Thema "in den Projektquelltext schreiben": Das funzt nicht. Er kennt hier die Variabel-Typen nicht an.
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Do 14.08.03 12:31 
Wenn er einen VariablenTyp nicht kennt, musst Du die Unit die den VariablenTyp enthält einbinden.

cu Patmann
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 14.08.03 14:37 
Hendrik hat folgendes geschrieben:

Und zu dem Thema "in den Projektquelltext schreiben": Das funzt nicht. Er kennt hier die Variabel-Typen nicht an.

Welche? Die standard Typen sollte er kennen. Windowsspezifische stehen in Windows.pas drin.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 14.08.03 15:10 
In dem Fall nicht, denn im Projektquelltext (*.dpr) steht erst mal nur die Forms-Unit und die Units der benutzten Formulare. Also müssen die notwendigen Units wirklich erst mal ergänzt werden.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 15.08.03 21:16 
das ist dde:

irgendeine Seite hat folgendes geschrieben:

DDE means "Dynamic Data Exchange". DDE is a communications protocol designed by Microsoft to enable all applications running in the Windows environment to send and receive data and to exchange instructions. It institutes a client/server relationship between two communicating applications. The server application supplies the data and agrees to respond to requests for data from any interested application. Applications requesting such data are called "clients." Some applications, such as Excel, can be both client and server.

Certain software publishers developed "Block DDE" modes which optimize the exchange of data. applicom® PCDDE supports this according to its version:

the FastDDE mode (from Wonderware)
the AdvanceDDE mode (from Rockwell Software)
To obtain data from another application, the client program opens a channel to the server application, specifying three parameters:

Application name
Topic name
Item name
For example, in the case of Excel, the Application name is "EXCEL," the Topic name is the name of the spreadsheet containing the data and the Item name stands for the coordinates of a given cell in the spreadsheet.

When a client application sets up a link with a DDE server application, it sends an advise request to the server, which must inform the client whenever the value of a defined Item changes. This link remains active as long as the client or the server does not terminate it. It is a very effective way of exchanging data because once the link has been setup, communication occurs only when data values vary. Programs such as InTouch (from Wonderware) or RSView (from Rockwell Software) use the DDE protocol to communicate with various input/output drivers and with other DDE applications.


Ich habe dazu nur etwas in einem Buch, sonst würde ich dir sagen wo du ein Tutorial findest.
Hendrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: Sa 16.08.03 14:42 
Hey!


Es hat jetzt gefunzt. Danke euch!