手机
当前位置:查字典教程网 >脚本专栏 >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 更改个人文件夹的小工具

安全证书错误怎么办

AutoIt脚本的反编译和代码格式化问题分析

飞信的CMD命令行接口批量发送信息

autoit InputBox 函数

Win8一键恢复怎么用?

YY歪歪卡拉ok怎么设置

Au3截取腾讯天气的脚本

AutoIt3和按键精灵的功能对比第1/2页

autoit自定义函数

精品推荐
分类导航