找回密码
 加入
搜索
查看: 1533|回复: 1

[AU3基础] 关闭两个网页的问题

[复制链接]
发表于 2011-9-13 14:27:24 | 显示全部楼层 |阅读模式
想做一个关闭两个开机弹出的网页广告,第一个开机就弹出来,另外一个要等一会再弹出来。如何将以下代码修改呢?
#Include <WinAPIEx.au3>
Dim $e = 0

;获取 QQ.exe PID
Dim $PubWinPID = ProcessExists("QQ.exe")

While($e <= 1)
        ;历遍进程获取 "iexplore.exe" PID
        $list = ProcessList("iexplore.exe")

For $i = 1 To $list[0][0]
       
        ;获取父进程PID
        Dim $FuPID = _WinAPI_GetParentProcess ($list[$i][1])
       
        ;判断父进程PID是否与"iexplore.exe" 父进程PID相同
        If($FuPID = $PubWinPID)Then
                ;关闭父进程PID相同的"iexplore.exe"进程
                ProcessClose($list[$i][1])
        EndIf
Next
WEnd
 楼主| 发表于 2011-9-15 13:50:11 | 显示全部楼层
求指教
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 01:33 , Processed in 0.079734 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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