Ver Mensaje Individual
  #6  
Antiguo 17-05-2006
Avatar de Sotrono
Sotrono Sotrono is offline
Miembro
 
Registrado: abr 2004
Ubicación: Buenos Aires - Argentina
Posts: 396
Reputación: 21
Sotrono Va por buen camino
Aca tenes otra forma:

Código Delphi [-]
//Escrito por roman
var
  Input: TInput;
begin
  Input.Itype := INPUT_KEYBOARD;
  Input.ki.wVk := VK_RETURN; // Tecla a simular

  // Presionar tecla
  SendInput(1, Input, SizeOf(Input));

  // Soltar tecla
  Input.ki.dwFlags := KEYEVENTF_KEYUP;
  SendInput(1, Input, SizeOf(Input));

Saludos...
Responder Con Cita