procedure TForm1.GoogleSearch(Canal, Nick, Palavra: string); const Site = 'http://www.google.com.br/search?client=firefox-a&rls=org.mozilla%3Apt-BR%3Aofficial&channel=s&hl=pt-BR&q='; Comp = '&meta=&btnG=Pesquisa+Google'; Ed: array[1..4]of string = ('','',' ','"'); var Kw, S, X, Resultados: String; A, B, i, Count: Integer; begin if Palavra = '' then begin PrivMsg(Canal, '15Sintaxe:1 !g keywords'); Exit; end; Kw := StringReplace(Trim(Palavra), ' ', '+', [rfReplaceAll]); S := IdHTTP1.Get(Site + Kw + Comp); Count := 0; while Pos('class=g>', S) + 7; PrivMsgBuff(Nick, '5Link:1 ' + 'http://linhadefensiva.uol.com.br' + Copy(S, B, A - B - 15)); A := Pos('"bold">', S) + 7; B := PosEx('', S, A); PrivMsgBuff(Nick, '7Processo1: ' + Copy(S, A, B - A)); Delete(S, 1, Pos('', S) + 5); A := PosEx('>', S, Pos('', S); PrivMsgBuff(Nick, '7Nome1: ' + Copy(S, A, B - A)); Delete(S, 1, Pos('', S) + 5); A := Pos('