这个VB代码为什么只能获得窗口内的名字而不能获得窗口外的

来源:百度知道 编辑:UC知道 时间:2024/05/25 15:16:19
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function ClientToScreen Lib "user32" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long
Private Declare Function SetCapture Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Type POINTAPI
x As Long
y As Long
End Type
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim curwnd As Long
Dim mystr As String * 255
Dim mouse As POINTAPI
SetCapture Me.hwnd '设置当前

屏幕取词?

哪有这么简单 我当初话了1000买的dll

虽然我那时候自己没有开发出来 但是我了解了很多

vb+api 是不可能做出来一个exe就可以的的

这是底层决定的