Autor Beitrag
pHaRyNx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: Fr 27.10.06 17:25 
hallo!

ich hab mir eine programmdatenbank gemacht, mit der ich verschiedene programme auf knopfdruck aus einer liste starten kann.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
uses shellapi;
...
var Programm:String;
...
ShellExecute(Application.Handle,'open',PCHAR(Programm),nil,nil,SW_Hide);


allerdings klappt das nicht bei allen programmen. z.b. werden manche programme nur als prozess gestartet und die gui bleibt verborgen. außerdem gibt es probleme, wenn ich programme mit parametern starten will...

gibt es noch eine andere, bessere möglichkeit, andere programme zu starten, sodass man ausnahmslos alle programme mit meinem programm starten kann?

thx im voraus
mfg pHaRyNx
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 27.10.06 17:28 
Warum nimmst du als Parameter SW_Hide und nicht SW_ShowNormal?

_________________
We are, we were and will not be.
pHaRyNx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: Fr 27.10.06 17:48 
hm, gute frage...danke, jetzt klappt es !

thx pHaRyNx