📄 屏幕保护程序.frm
字号:
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 3105
ClientLeft = 0
ClientTop = 0
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3105
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 1000
Left = 0
Top = 0
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i, j, x As Integer
Private Sub Form_Load()
Form1.Left = 0
Form1.Top = 0
Form1.Height = Screen.Height
Form1.Width = Screen.Width
x = 0
Form1.Visible = False
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
End
End Sub
Private Sub Timer1_Timer()
Form1.Visible = True
j = Screen.Height / 255
Select Case x
Case 0
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, 0)
Next i
Case 1
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(0, i / j, 255 - i / j)
Next i
Case 2
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, 0, i / j)
Next i
Case 3
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, 255 - i / j)
Next i
Case 4
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, i / j, 255 - i / j)
Next i
Case 5
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, 255 - i / j, i / j)
Next i
Case 6
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(i / j, i / j, 255 - i / j)
Next i
Case 7
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, i / j, i / j)
Next i
Case 8
'Form1.Cls
For i = 0 To 255 * j
Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, i / j)
Next i
End Select
If x <= 7 Then
x = x + 1
Else
x = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -