⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sbform.frm

📁 VB远程控制代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form sbform 
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4680
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   DrawStyle       =   1  'Dash
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   480
      Top             =   2640
   End
   Begin VB.Image Image1 
      Height          =   480
      Left            =   840
      Picture         =   "sbform.frx":0000
      Top             =   600
      Width           =   480
   End
   Begin VB.Label Label1 
      Caption         =   "嘿嘿!你出不去了!"
      BeginProperty Font 
         Name            =   "华文彩云"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   615
      Left            =   360
      TabIndex        =   0
      Top             =   1680
      Width           =   3975
   End
End
Attribute VB_Name = "sbform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim s As Integer
Dim f As Integer


Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then clipto Screen

End Sub

Private Sub Form_Load()


Dim xx, yy As Long
Dim pnt As POINTAPI
pnt.x = 0
pnt.y = 0

Me.left = (Screen.Width - Me.Width) \ 2
Me.top = (Screen.Height - Me.Height) \ 2
Call ClientToScreen(Me.hwnd, pnt)
xx = pnt.x + (Me.Width \ 2)
yy = pnt.y + (Me.Height \ 2)
Call SetCursorPos(xx, yy)
clipto sbform
s = 50
f = 50
SetWindowPos hwnd, -1, 0, 0, 0, 0, 3

End Sub


Private Sub Timer1_Timer()
If (Image1.left + Image1.Width) >= sbform.Width Then
s = -s
End If
If Image1.left <= 0 Then
s = -s
End If
If Image1.top <= 0 Then
f = -f
End If
If (Image1.top + Image1.Height) >= sbform.Height Then
f = -f
End If

Image1.left = Image1.left + s
Image1.Move Image1.left + s, Image1.top + f

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -