use this
uses sysutils,classes;
var
p1,p2:pointer;
begin
while true do
begin
if engine.waitaction([ladlg], p1, p2) = ladlg then
begin
if pos(lowercase('bot'), lowercase(engine.dlgtext)) <> 0 then
begin
delay(555);
engine.bypasstoserver('antibot_correct');
end;
end;
end;
end.