Ver Mensaje Individual
  #2  
Antiguo 25-07-2012
juank1971 juank1971 is offline
Miembro
 
Registrado: feb 2008
Posts: 230
Reputación: 17
juank1971 Va por buen camino
probe de esta otra manera que vi tambien en estos foros pero me hace lo mismo

cuando le pongo la funcion que retorna el foco no ejecuta la tecla enviada

Código Delphi [-]
procedure TForm1.Button2Click(Sender: TObject);
var hw:integer;
begin
hw:=findwindow(nil,'t.html - Google Chrome');
if hw>0 then
  postmessage(hw,VK_F5,97,0);

 //  SetForegroundWindow(hw); // Cambia el foco
end;
Responder Con Cita