找回密码
 加入
搜索
查看: 5159|回复: 9

对窗口进程进行监控的小工具

 火.. [复制链接]
发表于 2008-5-3 14:20:45 | 显示全部楼层 |阅读模式
<p>这个是把左下角的托盘图标隐掉,加了 Ctrl+Alt+F12退出</p><p>Opt(&quot;RunErrorsFatal&quot;, 0)<br />Opt(&quot;WinTitleMatchMode&quot;, 2)<br />Opt(&quot;TrayIconHide&quot;, 1)<br />HotkeySet(&quot;!^&#123;F12&#125;&quot;, &quot;exit_0&quot;)<br />$inikey=&quot;windows&quot;<br />While 1<br />&nbsp;Sleep(80)<br />&nbsp;$var = IniReadSection(@ScriptDir&amp;&quot;&#92;sysfile.ini&quot;, $inikey)<br />&nbsp;If @error Then <br />&nbsp;&nbsp;MsgBox(4096, &quot;&quot;, &quot;no INI file.&quot;)<br />&nbsp;&nbsp;Exit<br />&nbsp;Else<br />&nbsp;&nbsp;For $i = 1 To $var[0][0]<br />&nbsp;&nbsp;&nbsp;If $inikey=&quot;windows&quot; Then<br />&nbsp;&nbsp;&nbsp;&nbsp;If WinExists($var[$i][0]) then WinClose($var[$i][0])<br />&nbsp;&nbsp;&nbsp;ElseIf &nbsp;$inikey=&quot;proc&quot; Then<br />&nbsp;&nbsp;&nbsp;&nbsp;If ProcessExists($var[$i][0]) Then ProcessClose($var[$i][0])<br />&nbsp;&nbsp;&nbsp;ElseIf &nbsp;$inikey=&quot;lock&quot; Then&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;If Not ProcessExists($var[$i][0]) Then <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Run($var[$i][1],&quot;&quot;,@SW_HIDE)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If @error Then Run(@ComSpec &amp; &quot; /c &quot; &amp; $var[$i][1], &quot;&quot;, @SW_HIDE)<br />&nbsp;&nbsp;&nbsp;&nbsp;EndIf&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;EndIf&nbsp;<br />&nbsp;&nbsp;Next<br />&nbsp;EndIf<br />&nbsp;If $inikey=&quot;windows&quot; Then <br />&nbsp;&nbsp;$inikey=&quot;proc&quot;<br />&nbsp;&nbsp;ContinueLoop<br />&nbsp;ElseIf &nbsp;$inikey=&quot;proc&quot; Then<br />&nbsp;&nbsp;$inikey=&quot;lock&quot;<br />&nbsp;&nbsp;ContinueLoop&nbsp;&nbsp;<br />&nbsp;ElseIf &nbsp;$inikey=&quot;lock&quot; Then&nbsp;<br />&nbsp;&nbsp;$inikey=&quot;windows&quot;<br />&nbsp;EndIf<br />WEnd<br />Func exit_0()<br />&nbsp;exit<br />EndFunc&nbsp;</p>
发表于 2009-10-8 14:10:14 | 显示全部楼层
不错。。...
发表于 2009-12-16 23:27:12 | 显示全部楼层
很好很人性化
发表于 2009-12-17 00:29:14 | 显示全部楼层
没明白是做什么的!
发表于 2010-4-17 11:22:09 | 显示全部楼层
不是很明白
发表于 2010-10-30 23:26:24 | 显示全部楼层
不大明白!!
发表于 2012-3-10 18:13:47 | 显示全部楼层
发表于 2012-3-10 19:49:45 | 显示全部楼层
谢谢楼主分享
发表于 2012-3-10 22:05:48 | 显示全部楼层
谢谢楼主分享
发表于 2012-4-6 19:31:36 | 显示全部楼层
           谢谢分享,测试一下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-24 06:12 , Processed in 0.076751 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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