找回密码
 加入
搜索
查看: 2780|回复: 0

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

[复制链接]
发表于 2013-10-11 09:12:02 | 显示全部楼层 |阅读模式

<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","您要删除此信息吗","[CLASS:button;INSTANCE:1]")都未能执行

搜索坛子里,发现有人用_IEAction解决了,但是我测试却是不行啊,代码如下,请各位指教啊??
$oImgs = _IEImgGetCollection($oIE)
For $oImg In $oImgs
    if $oImg.src == '../imges/delete.jpg' then
         $hwnd = _IEPropertyGet($oIE, "hwnd")
         _IEAction($oImg, "focus")
         ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
         WinWait("Microsoft Internet Explorer", "")
        ControlClick("Microsoft Internet Explorer", "", "[CLASS:Button; Instance:1;]")      
    endif
Next
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-16 15:38 , Processed in 0.073447 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表