procedure TDisableInput.Execute; begin if Assigned(FOnDisabled) then FOnDisabled(self); BlockInput(true); Sleep(FInterval); BlockInput(false); if Assigned(FOnEnabled) then FOnEnabled(self); end;