VB.NET 获取正在系统运行的窗口标题
若以下回答无法解决问题,邀请你更新回答
1个回答
2008-10-21
展开全部
获得前台窗口句柄:
Declare Function GetFocus Lib "user32" Alias "GetFocus" () As Long
根据这个句柄取窗口标题:
Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
===
用这2个API
Declare Function GetFocus Lib "user32" Alias "GetFocus" () As Long
根据这个句柄取窗口标题:
Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
===
用这2个API
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询