• Visual Basic Sleep Timer (Watch below or click here to watch on YouTube)
  • Visual Basic Code
    
    BASIC Sleep Timer PC/Laptop (shuts down PC/Laptop)
    
    '////////////////////////////////////////////////////////////////
    Public Class Form1
    
        Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
            '//1 Hour Sleep
            Shell("C:\Windows\system32\shutdown.exe -s -t 3600")
        End Sub
    
        Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
            '//2 Hour Sleep
            Shell("C:\Windows\system32\shutdown.exe -s -t 7200")
        End Sub
    
        Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
            '//Abort Sleep
            Shell("C:\Windows\system32\shutdown.exe -a")
        End Sub
    
    End Class
    
    '////////////////////////////////////////////////////////////////
    
    

    As the name suggests a very basic Sleep Timer for PC/Laptop made in 2012 If you fall asleep listening or watching the PC/Laptop Set the 1 hour or 2 hour timer and drift away. The PC/Laptop will shutdown when the hour or 2 hours is complete.
    If you need to change the time click abort, then reset for 1 or 2 hours again