📄 frm2_1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00C0C0C0&
Caption = "Form1"
ClientHeight = 1560
ClientLeft = 60
ClientTop = 345
ClientWidth = 5550
LinkTopic = "Form1"
ScaleHeight = 1560
ScaleWidth = 5550
StartUpPosition = 3 'Windows Default
Begin VB.Timer Timer1
Interval = 100
Left = 240
Top = 1080
End
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00C0C0C0&
Caption = "Label1"
Height = 735
Left = 60
TabIndex = 0
Top = 300
Width = 5355
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function GetWindowText& Lib "user32" Alias "GetWindowTextA" _
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long)
Private Declare Function GetForegroundWindow& Lib "user32" ()
Private Sub Timer1_Timer()
Dim dl As Long
Dim MyHwnd As Long
Dim MyCaption As String
MyCaption = Space(256)
MyHwnd& = GetForegroundWindow()
dl& = GetWindowText(MyHwnd, MyCaption, 255)
Label1.Caption = "您点了" & MyCaption
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -