It is necessary to implement a constant download page from the site. There is a component IdHTTTP from him method Get gets the page. I tried to loop the program in such a way, it should work, not work ... using WorkEnd events (after the page loads)
procedure TForm12.IdHTTP1WorkEnd(ASender:TObject; AWorkMode: TWorkMode); begin memo1.Lines.Add('ADD'); idHTTP1.Get('http://yandex.ru'); end;
It looks like recursion, but not quite), and so, it is executed only once, although after loading the page, the WorkEnd event again triggers Get ... loading and waiting for WorkEnd to fire, but it does not work anymore, why?