找回密码
 加入
搜索
查看: 5484|回复: 6

[IE类操作] QQ空间留言板批量删除操作

  [复制链接]
发表于 2012-3-6 19:38:21 | 显示全部楼层 |阅读模式
悬赏50金钱已解决
本帖最后由 83265358 于 2012-3-7 00:59 编辑

下图是QQ空间留言批量删除页面,按顺序分别点击1处复选框、2处删除选中的链接、3确定按钮,该怎么写?求指教!
其它网站的都没什么大问题!就TX的难搞! 各位帮帮我啦!



网页源码:
<div id="commentList">
                                                  <script type="text/javascript">
                                                                document.write(PAGE_HTML);
                                                                //页面留言部分前台处理完毕
                                                                parent.mgbSpeedPoint[3] = new Date().getTime();
                                                        </script>
                                                </div>
                                                <p class="tbor2 toolbar_batch_processing" id="divBatchOperBottom" style="display:none;">
                                                        <label for="chkSelectAllBottom"><input type="checkbox" id="chkSelectAllBottom" /> 全选</label> <a id="btnDeleteBatchBottom" href="javascript:void(0);" onclick="MSG.list.deleteBatch();return false;" class="c_tx">删除选中的</a>
                                                        <a id="btnAddEssenceBatchBottom" style="display:none;" href="javascript:void(0);" onclick="MSG.list.addEssenceBatch();return false;" class="c_tx">置顶选中的</a>
                                                </p>
附件: 您需要 登录 才可以下载或查看,没有账号?加入

最佳答案

查看完整内容

顶下学习学习。

评分

参与人数 1金钱 +15 收起 理由
afan + 15 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2012-3-6 19:38:22 | 显示全部楼层
顶下学习学习。
 楼主| 发表于 2012-3-6 22:06:37 | 显示全部楼层
无人愿意指点!!!
发表于 2012-3-7 08:21:48 | 显示全部楼层
TMD腾讯的东西就是难搞
发表于 2012-3-7 09:02:26 | 显示全部楼层
深奥~!学习学习
 楼主| 发表于 2012-3-7 23:32:18 | 显示全部楼层
最后用个笨方法!
#include <WindowsConstants.au3>

HotKeySet('{Esc}', '_Exit')
AdlibRegister('Memory', 3000)

$title = "XX的空间 [http://83******.qzone.qq.com] - Windows Internet Explorer"

If WinExists($title) Then
        If Not WinActive($title) Then WinActivate($title)
Else
        MsgBox(0, "提示", "QQ空间没有打开", 3)
EndIf

WinWaitActive($title)

While 1
        Delly()
        Sleep(20)
WEnd

Func Delly()
        Sleep(500)
        MouseClick("left",280,472,1)
        Sleep(500)
        MouseClick("left",354,468,1)
        Sleep(500)
        MouseClick("left",791,646,1)
EndFunc

Func _Exit()
        Exit
EndFunc

Func Memory()
        _ReduceMemory(@AutoItPID)
EndFunc   ;==>Memory

Func _ReduceMemory($i_PID = -1)
        If $i_PID <> -1 Then
                Local $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $i_PID)
                Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $ai_Handle[0])
                DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $ai_Handle[0])
        Else
                Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1)
        EndIf

        Return $ai_Return[0]
EndFunc   ;==>_ReduceMemory
发表于 2012-3-13 13:31:24 | 显示全部楼层
深奥~!学习学习
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-10 16:43 , Processed in 0.078455 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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