手机
当前位置:查字典教程网 >脚本专栏 >autoit >AutoIT写的禁止QQ运行的程序代码
AutoIT写的禁止QQ运行的程序代码
摘要:ifProcessExists("qq.exe")then$QQPID=ProcessExists("qq.exe")ProcessClos...

ifProcessExists("qq.exe")then

$QQPID=ProcessExists("qq.exe")

ProcessClose($QQPID)

endif

===============================================================

SetobjWMIService=GetObject("winmgmts:"&"{impersonationLevel=impersonate}!.rootcimv2")

SetcolMonitoredProcesses=objWMIService.ExecNotificationQuery("select*from__instancecreationeventwithin1whereTargetInstanceisa'Win32_Process'")

i=0

DoWhilei=0

SetobjLatestProcess=colMonitoredProcesses.NextEvent

strPrs=LCase(objLatestProcess.TargetInstance.Name)

IfInStr(strPrs,"qq")<>"0"Then

objLatestProcess.TargetInstance.Terminate

EndIf

SetobjLatestProcess=Nothing

Loop

【AutoIT写的禁止QQ运行的程序代码】相关文章:

用autoit编写第一个脚本(Hello World)

港行iPhone6/6 Plus已敞开销售

autoit自定义函数

创建Win7标准账户,让系统更安全

获取外网IP并发送到指定的邮箱的脚本

使用AutoIT实现自动登录/退出客户端软件,删除日志

IOS8.1.3更新修复哪些BUG

Au3截取腾讯天气的脚本

Aut2Exe编译au3脚本为可执行文件

autoit 命令行参数说明

精品推荐
分类导航