作者: hjb016 时间: 2011-5-20 08:35
用API函数
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
If FindWindow(vbNullString, "安全信息") or FindWindow(vbNullString, "安全警报") Then
调用SendMessage来关闭窗体
end if
和关闭API函数
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long 作者: billyfine 时间: 2011-5-21 09:27 回复 hjb016 的帖子
请问有没有弹出窗口htm代码的获取方法作者: hjb016 时间: 2011-5-21 16:47
用API函数
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
If FindWindow(vbNullString, "安全信息") or FindWindow(vbNullString, "安全警报") Then
调用SendMessage来关闭窗体
end if