Quote:
Originally Posted by Masquerade
@Ele, thanks your plugin works great in my tests. I tried the dll by BLACKFIRE69 however I could not get it to work.
Is there a way to stop my memo from echoing the same thing twice?
Currently I have it set to echo the file currently being extracted however this means it echoes the same file over and over again until it moves onto the next file.
Here's the current code:
Code:
function ProgressCallback(OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
CurTick: DWORD;
begin
Memo.Lines.Add('Unpacking: ' + CurrentFile);
I thought maybe I could make a temporary string variable and comparing it with the current file and if so, skip echoing the current file, I am interested if anyone has any thoughts on this.
|
if not Memo.Lines.IndexOf('Unpacking: ' + CurrentFile) > -1 then
Memo.Lines.Add('Unpacking: ' + CurrentFile);