IE JS 弹出窗口如何操作啊,求指教
http://www.autoitx.com/attachment.php?aid=MjA3MDl8N2FiOTdlNTR8MTM4MTQyMTE5NnxlYTJjcTFTdFhIMXplWTI0ZGIrL0JPRDc3SHV2QVg3L3J1aWYzcUhWWjRGcWs2dw%3D%3D&noupdate=yes<a href="save.asp?action=delete&id=58131&page=0" class="b"><img src="../imges/delete.jpg" width="57" height="21" border="0"></a>
用_IEImgClick点击图片后弹出对话框,再用send("{Enter}")、controlclick("Microsoft Inernet Explorer","您要删除此信息吗","")都未能执行
搜索坛子里,发现有人用_IEAction解决了,但是我测试却是不行啊,代码如下,请各位指教啊??
$oImgs = _IEImgGetCollection($oIE)
For $oImg In $oImgs
if $oImg.src == '../imges/delete.jpg' then
$hwnd = _IEPropertyGet($oIE, "hwnd")
_IEAction($oImg, "focus")
ControlSend($hwnd, "", "", "{Enter}")
WinWait("Microsoft Internet Explorer", "")
ControlClick("Microsoft Internet Explorer", "", "")
endif
Next
页:
[1]