注册 登录
编程论坛 VB6论坛

如何获得窗口句柄?

vincelixia 发布于 2013-01-25 17:08, 449 次点击
我是个VB新手,求大神帮助,如何获得窗口句柄,例如获得某个游戏的窗口句柄
2 回复
#2
wube2013-01-25 18:20
FindWindows
#3
seafish0112013-01-29 06:12
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Txtc = FindWindow(vbNullString, "游戏名")
1