本帖最后由 tan133 于 2012-5-15 01:12 编辑
如图所示的IE网页弹窗,如何点击?
失败$n=ControlSend("文件下载 - 安全警告", "", "button2", "{SPACE}")
msgbox (000,0,$n)
失败$n=ControlClick("文件下载 - 安全警告", "", "button2")
msgbox (000,0,$n)
失败#Include <WinAPI.au3>
$hwnd=0x00050722
$WM_LBUTTONDOWN=0x201
$WM_LBUTTOUP=0x202
_WinAPI_PostMessage($hwnd,$WM_LBUTTONDOWN,0,0)
_WinAPI_PostMessage($hwnd,$WM_LBUTTOUP ,0,0)
失败#Include <WinAPI.au3>
$hwnd=0x00050722
$BM_CLICK=0xF5
_WinAPI_PostMessage($hwnd,$BM_CLICK,0,0)
失败#Include <WinAPI.au3>
$hwnd=0x00050722
Const $WM_KEYDOWN = 0x100
Const $WM_KEYUP = 0x101
Const $WM_CHAR = 0x106
_WinAPI_PostMessage($hwnd,$WM_KEYDOWN, "{Space}", 0)
_WinAPI_PostMessage($hwnd,$WM_CHAR, "{Space}", 0)
_WinAPI_PostMessage($hwnd,$WM_KEYUP, "{Space}", 0)
|