Autor Beitrag
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Sa 02.04.05 15:24 
nehmen wir mal an ich starte mit

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    lpStartupInfo.cb := SizeOf(lpStartupInfo);
    FillChar(lpStartupInfo,sizeOf(lpStartupInfo),#0);
    lpStartUpInfo.dwFlags := STARTF_USESHOWWINDOW;
    lpStartUpInfo.wShowWindow := SW_HIDE;
    CreateProcess(PChar(s),nil,nil,nil,false,0,nil,PChar(ExtractFilePath(s)),lpStartupInfo,lpProcessInformation);


einen prozess, wie komme ich dann am leichtesten an das window handle um gegebenfalls das fenster wieder anzuzeigen?


Moderiert von user profile iconAXMD: Topic aus Off Topic verschoben am So 25.09.2005 um 14:22

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Sa 02.04.05 15:48 
Nach CreateProcess mit WaitForInputIdle warten. Dann EnumWindows ausführen. Und mit GetWindowThreadProcessId Fensterhandle und ProcessId vergleichen.

www.softgames.de/for....php?t=109513#609303


Edit: \\ War falscher Link.
www.delphipraxis.net...bekommen.html#263476

_________________
Ciao, Sprint.
uall@ogc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Sa 02.04.05 18:11 
Funktioniet nicht wirklich ergebnis ist immer 0
es handelt sich dabei um ne dosbox wenn das hilft ;>

liegt am InputIdle

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit