continuacion timer
Publicado por lula (19 intervenciones) el 26/03/2003 11:55:51
el codigo es el siguiente
Private Sub Timer1_Timer()
Label1.Caption = Time
S = Right(Label1.Caption, 2)
If Label1.Caption = txthora.Text & ":" & txtminuto.Text Then
If optapagar = True Then
Dim i As Integer
i = ExitWindowsEx(1, 0&) 'Apaga el equipo
Resultado = ExitWindowsEx(Accion, 0&)
ElseIf optreiniciar = True Then
i = ExitWindowsEx(2, 0&) 'Reinicia el Sistema
Resultado = ExitWindowsEx(Accion, 0&)
ElseIf optcerrarsesi = True Then
i = ExitWindowsEx(3, 0&) 'cierra sesion
Resultado = ExitWindowsEx(Accion, 0&)
End If
End If
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Time
S = Right(Label1.Caption, 2)
If Label1.Caption = txthora.Text & ":" & txtminuto.Text Then
If optapagar = True Then
Dim i As Integer
i = ExitWindowsEx(1, 0&) 'Apaga el equipo
Resultado = ExitWindowsEx(Accion, 0&)
ElseIf optreiniciar = True Then
i = ExitWindowsEx(2, 0&) 'Reinicia el Sistema
Resultado = ExitWindowsEx(Accion, 0&)
ElseIf optcerrarsesi = True Then
i = ExitWindowsEx(3, 0&) 'cierra sesion
Resultado = ExitWindowsEx(Accion, 0&)
End If
End If
End Sub
Valora esta pregunta


0