Autor Beitrag
moddin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75

WinXP Pro
Delphi 7 Enterprise ;-)
BeitragVerfasst: Sa 14.01.06 19:09 
Also ich glaube das wurde hier oft schon gestellt aber ich würde gern wisen wie man ein Spiel wie
Quake III,Call of DUty und so mittels WinEXEC() Straten kann da bei mir dann immer zb wenn Project1.exe aufm Desktop ist nimmt Quake dann meine ndesktop als Hauptpfad und alles schiret ab

Es wurde schon mehrmals was von Arbeitsverzeichnissen gesagt die als Parameter übergegbe werden hab aber keine Ahnung wie der Parameter für Qukae III heßt

Bitte helft mir

tnnx


Moderiert von user profile iconChristian S.: Topic aus Multimedia / Spiele / Grafik verschoben am Sa 14.01.2006 um 19:18
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 14.01.06 19:15 
ich konnte zwar nicht alles entziffern, aber such mal nach Suche in: Delphi-Forum, Delphi-Library PARAMSTR(0) und Suche in: Delphi-Forum, Delphi-Library SHELLEXECUTE und Suche in: Delphi-Forum, Delphi-Library EXTRACTFILEPATH könnte auch noch hilfreich sein
[vsc]PrimeTime
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

XP SP0
Delphi 6 Pers. (eng), Delphi 2005
BeitragVerfasst: Mi 18.01.06 12:39 
Hi,
wie siehts den mit:
ausblenden Delphi-Quelltext
1:
shellexecute('C:\Dokumente und Einstellungen\[username]\Desktop\QuakeIII.ink');					

aus?

Schau dich mal in der Delphi-Hilfe nach dem Begriff um.

Sollte das nicht funktionnieren, gibst du einfach anstatt der Desktop-Verknüpfung die original EXE an. z.b: C:\QuakeIII\Quake.exe

Gruß
Manu

_________________
-=the things you own, own you=-
JESUS SAVES, the rest of you takes full damage!
Quake User
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 159



BeitragVerfasst: Di 31.01.06 02:15 
TCustomFileRun ist dein Mittel der Wahl

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
 quake:=TCustomFileRun.Create(Form1);
  quake.FileName:= 'quake4.exe';

  try
    quake.ExecuteTarget(quake);
  except
    ShowMessage('Fehler: '+IntToStr(quake.HInst));
  end;



Das Ergebnis kannst Du Dir unter
www.em-home.de/quake4
ansehen.

Das Programm:
QuakeServer1.11.exe [MD5: 7cf331ccfe53391efd98be665172dace]

Moderiert von user profile iconUGrohne: Beitragsformatierung überarbeitet.