zhizunbao84 发表于 2013-10-11 09:12:02

IE JS 弹出窗口如何操作啊,求指教

http://www.autoitx.com/attachment.php?aid=MjA3MDl8N2FiOTdlNTR8MTM4MTQyMTE5NnxlYTJjcTFTdFhIMXplWTI0ZGIrL0JPRDc3SHV2QVg3L3J1aWYzcUhWWjRGcWs2dw%3D%3D&noupdate=yes
<a href="save.asp?action=delete&amp;id=58131&amp;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]
查看完整版本: IE JS 弹出窗口如何操作啊,求指教