Autor Beitrag
g1o2k4
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Do 13.03.08 14:41 
hi

kann man die konsole versteckt starten ?
bei der Tform gibts ja ne option sie sichtbar zu starten oder halt unsichtbar....
geht das auch mit der konsole ?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 13.03.08 20:04 
Moin!

user profile icong1o2k4 hat folgendes geschrieben:
kann man die konsole versteckt starten ?
Was ist denn die Konsole? :gruebel:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Do 13.03.08 20:09 
user profile iconNarses hat folgendes geschrieben:
Moin!
user profile icong1o2k4 hat folgendes geschrieben:
kann man die konsole versteckt starten ?
Was ist denn die Konsole? :gruebel:

Also ich würde einfach über die Konsole eine Kiste stellen. Bei der Wii ist die sogar ganz klein.

Spaß beiseite:
Meinst du die cmd.exe?
Und: Warum willst du das ganze versteckt starten?


Zuletzt bearbeitet von Regan am Do 13.03.08 20:38, insgesamt 1-mal bearbeitet
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 13.03.08 20:33 
Da er TForm als Beispiel nutzt, denke ich mal, er meint eine Konsolenanwendung
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 13.03.08 20:38 
Hallo,

ich habe zwar gerade gar keine Ahung, worauf du hinaus willst, aber schau dir mal das hier an: Ausgabe der Konsole in meinem Programm anzeigen. Vielleicht hilft dir das ja weiter :nixweiss:

Grüße,
Yogu
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 13.03.08 20:43 
Ich vermute er meint sowas:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
uses
   Windows, Sysutils, Messages;

var
 handle: THandle;
begin
   handle := FindWindow(nil, PChar(paramstr(0)));
   
  if (handle <> 0) then begin
      showwindow(handle, sw_hide);
      sleep(3000);
      showwindow(handle, sw_show); 
  end;

  readln;
end.


Cheers,
Marc.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 13.03.08 21:00 
Moin!

user profile iconYogu hat folgendes geschrieben:
aber schau dir mal das hier an: Ausgabe der Konsole in meinem Programm anzeigen.
Warum in die Ferne schweifen ;) sowas haben wir auch in unserer Library. :D

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Do 13.03.08 21:09 
mit konsole meinte ich die kommandozeile die erscheint wenn ne konsolenanwendung gestartet wird...
ich will es ausblenden weil nicht drin angezeigt oder eingegeben wird...also zwecklos es läuft nur ein prozess im hintergrund, aber das fenster stört nur.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  handle := FindWindow(nil, PChar(paramstr(0)));
   
  if (handle <> 0) then begin
      showwindow(handle, sw_hide);
  end;


das funktioniert zwar, aber die konsole blinkt immer noch kurz auf bevor sie verschwindet...
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 13.03.08 21:12 
Wie wär's denn mit meinem / user profile iconNarses' Vorschlag? Ich glaube, wenn du die Konsole ausliest, wird sie auch nicht mehr angezeigt.

user profile iconNarses: Sorry. Ich wusste, dass ich das schon ml im Delphi-Treff gesehen hatte, und habe nicht weiter danach gesucht.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 13.03.08 21:33 
Moin!

user profile icong1o2k4 hat folgendes geschrieben:
mit konsole meinte ich die kommandozeile die erscheint wenn ne konsolenanwendung gestartet wird...
In diesem Fall stellt ich ja nun eher die Frage, wer deine Konsolenanwendung startet - weil da kann man dann was dran machen... :idea: ;)

@user profile iconYogu: Kein Problem ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
g1o2k4 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Do 13.03.08 21:35 
naja ich glaube für meine zwecke reicht es auch so...mit kurzem aufflackern der konsole.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils,
  Windows,
  Messages;

var
  handle: THandle;
begin
  handle := FindWindow(nil, PChar(paramstr(0)));
   
  if (handle <> 0) then begin
      showwindow(handle, sw_hide);
  end;
end.


ist ja nur für den eigenbedarf.
turboPASCAL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 193
Erhaltene Danke: 1

Win XP / Vischda
D6 PE / D2005 PE
BeitragVerfasst: Sa 15.03.08 09:02 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
program Project1;

{$APPTYPE CONSOLE} // <--<<  Diese Zeile weglassen !

uses
  SysUtils,
  Windows,
  Messages;

begin
  // mach was
end.


...und schon ist kein Konsolenfenster da was man verstecken muss. ;)

_________________
Nein, ich bin nicht der turboPASCAL aus der DP, ich seh nur so aus... :P
gispos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 94

WIN 7
XE10, D2007
BeitragVerfasst: Mi 14.05.08 00:15 
Echt lustig hier,
war auch auf der Suche nach einer Lösung um eine Konsolenanwendung unsichtbar zu starten.
Habe „g1o2k4“ auch sofort verstanden… dann… lange Leitungen bis turboPascal auf den
Plan trat. :wink:

Danke turboPascal, Name ist Programm. :D
Gruß gispos
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 14.05.08 07:56 
Moin!

Den Compilerswitch wegzulassen hat aber AFAIR den Nachteil, dass man keine Ein-/Ausgabeumleitung per Piping machen kann (z.B. um die Ausgaben zum Debuggen in eine Textdatei umzuleiten, etc.pp.). :idea: :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.