ckmox
16th October 2010, 18:30
so i made a simple GUI encoder for HandbrakeCLI with my limited knowledge on programming but i manage to finished it in a whole day but the problem is that windows 7 users cant seem to run it the command prompt will be active but not gonna do the encoding
i think this is the part (and i bet it is) of the program that is problematic
procedure TfrmMain.btnEncodeClick(Sender: TObject);
var
i: integer;
fullFilename: string;
begin
fullFilename := '';
for i := 0 to lstOut.Items.Count - 1 do
begin
Hbk := Tprocess.Create(nil);
Hbk.CommandLine := extractfilepath(fullFilename) + lstOut.Items[i];
Hbk.Options := Hbk.Options + [poWaitOnExit];
Hbk.Execute;
Hbk.Free;
end;
end;
i already declared Hbk as Tprocess btw on variable declaration part of Lazarus
and could anyone help me how to redirect the command prompt activities to the program itself maybe a progress bar will do so any help on this will be appreciated too
thanks for reading waiting for reply
if you want to test it out on your windows 7 too here it is
http://www.mediafire.com/?a3tuf6sbbrrbbyd
i included the recent HandbrakeCLI with it too
P.S. in on windows xp sp3 and Lazarus 0.9.28.2
EDIT:
i manage to make a ProgressBar but i think the problem on windows 7 remains here is the updated program http://www.mediafire.com/?x7emm2d1wvvyoyq
i think this is the part (and i bet it is) of the program that is problematic
procedure TfrmMain.btnEncodeClick(Sender: TObject);
var
i: integer;
fullFilename: string;
begin
fullFilename := '';
for i := 0 to lstOut.Items.Count - 1 do
begin
Hbk := Tprocess.Create(nil);
Hbk.CommandLine := extractfilepath(fullFilename) + lstOut.Items[i];
Hbk.Options := Hbk.Options + [poWaitOnExit];
Hbk.Execute;
Hbk.Free;
end;
end;
i already declared Hbk as Tprocess btw on variable declaration part of Lazarus
and could anyone help me how to redirect the command prompt activities to the program itself maybe a progress bar will do so any help on this will be appreciated too
thanks for reading waiting for reply
if you want to test it out on your windows 7 too here it is
http://www.mediafire.com/?a3tuf6sbbrrbbyd
i included the recent HandbrakeCLI with it too
P.S. in on windows xp sp3 and Lazarus 0.9.28.2
EDIT:
i manage to make a ProgressBar but i think the problem on windows 7 remains here is the updated program http://www.mediafire.com/?x7emm2d1wvvyoyq