动态密码锁屏源码
Dim i As String
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal
dwFlags As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_ALPHA = &H2
Private Sub Form_Load()
Me.WindowState = vbMaximized
SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_LAYERED SetLayeredWindowAttributes Me.hwnd, 0, 220, LWA_ALPHA End Sub
Private Sub Timer1_Timer()
Shell "cmd.exe /c taskkill /im taskmgr.exe /f", vbHide i = "timreed" & Hour(Time()) & Minute(Time()) End Sub
Private Sub Command1_Click()
If (Text1.Text = i) Then
Unload Me
Else:
MsgBox ("ÃÜÂë?íÎó")
Text1.Text = ""
End If
End Sub