Autor Beitrag
110022
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: So 23.12.07 21:01 
wie lautet der qt um eine exe auszuführen sie aber nicht in der taskleiste gezeigt wird?
zum ausführen einer Datei :
ausblenden Delphi-Quelltext
1:
shellexecute(application.Handle, 'open', PChar('calc.exe'), nilnil, SW_SHOWNORMAL);					

aber dann ist sie in der taskleiste wie verhindere ich das?


Moderiert von user profile iconChristian S.: Topic aus Dateizugriff verschoben am So 23.12.2007 um 20:31
LorenzS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

MS-DOS, WIN 7, WIN 10
BP7.0, D3, D5
BeitragVerfasst: So 23.12.07 21:04 
application.Handle
es wird als deine application zugeordnet
110022 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: So 23.12.07 21:06 
kann sein
aber die wird in der taskleiste gezeigt .
das soll sie aber nicht.
LorenzS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

MS-DOS, WIN 7, WIN 10
BP7.0, D3, D5
BeitragVerfasst: So 23.12.07 21:10 
dann schreib die frage mal eindeutiger
110022 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: So 23.12.07 21:11 
jede normale exe wird in der taskleiste angezeigt(die meisten)
auch wenn ich sie mit diesem Code aufrufe:
ausblenden Delphi-Quelltext
1:
shellexecute(application.Handle, 'open', PChar('calc.exe'), nilnil,SW_SHOWNORMAL);					

wie lautet denn der code damit sie aufgerufen wird aber nicht in der taskleiste erscheint
und am besten immer im vordergrund ist?
also ein externes Programm nich in der Taskleiste Zeigen aber im vordergrund.
Wotan89
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mo 24.12.07 23:33 
Mit der Funktion SetWindow(Handle,sw_hide) kannst du sie vor der Taskleiste. "verstecken". Das Handle ist das Handle vom Fenster der Anwendung.
Wotan89
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 05.01.08 17:35 
Ach was hab ich denn für einen Scheiß gebastelt^^. Der Befehl heiß ShowWindow(Handle,sw_hide). Ich hoffe es klappt jetzt ;)