Kod:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Shellapi, StdCtrls, TlHelp32;
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
var
h:integer;
begin
h:=findwindow('Spheresvr',nil);
if h <> 0 then
begin
end
else
begin
winexec('spheresvr.exe',sw_show);
end
end;
end.
Kodlar bunlar. Direk projenin içini attım. Bu yeterli olmazsa proje dosyasını da upload ederek koyabilirim.