Ver Mensaje Individual
  #5  
Antiguo 04-05-2005
S.M.S. S.M.S. is offline
Miembro
 
Registrado: jun 2003
Ubicación: España
Posts: 56
Reputación: 21
S.M.S. Va por buen camino
Código Delphi [-]
implementation

procedure BlockInput(ABlockInput : boolean); stdcall; external 'USER32.DLL';

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
  BlockInput(True); //desactiva teclado y ratón
  Sleep(5000);
  BlockInput(False);//vuelve a activarlos
end;

Saludos.
Responder Con Cita