﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-疾风随影-随笔分类-AutoIT column</title><link>http://www.cnitblog.com/stjie/category/6697.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 30 Sep 2011 00:05:05 GMT</lastBuildDate><pubDate>Fri, 30 Sep 2011 00:05:05 GMT</pubDate><ttl>60</ttl><item><title>AutoIT显示当前时间函数</title><link>http://www.cnitblog.com/stjie/archive/2008/01/19/39044.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Sat, 19 Jan 2008 02:40:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2008/01/19/39044.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/39044.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2008/01/19/39044.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/39044.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/39044.html</trackback:ping><description><![CDATA[$frm1=GUICreate("Time", 250, 140) <br>$Label = GUICtrlCreateLabel(" ", 10, 110, 135, 17) ;同上<br>GUISetState()<br>AdlibEnable("time",1000)<br>While 1<br>&nbsp;Sleep(500)<br>WEnd&nbsp;<br>Func time()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GUICtrlSetData($Label, "现在时刻: " &amp; @HOUR &amp; ":" &amp; @MIN &amp; ":" &amp; @SEC)<br>EndFunc
<img src ="http://www.cnitblog.com/stjie/aggbug/39044.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2008-01-19 10:40 <a href="http://www.cnitblog.com/stjie/archive/2008/01/19/39044.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AutoIT清除系统日志函数（转载）</title><link>http://www.cnitblog.com/stjie/archive/2008/01/18/39016.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Fri, 18 Jan 2008 03:52:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2008/01/18/39016.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/39016.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2008/01/18/39016.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/39016.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/39016.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 清除系统日志,源处：http://www.autoit.net.cn/viewthread.php?tid=202&extra=page%3D10&nbsp;&nbsp;<a href='http://www.cnitblog.com/stjie/archive/2008/01/18/39016.html'>阅读全文</a><img src ="http://www.cnitblog.com/stjie/aggbug/39016.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2008-01-18 11:52 <a href="http://www.cnitblog.com/stjie/archive/2008/01/18/39016.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AutoIT中多定时器用法实例（转载）</title><link>http://www.cnitblog.com/stjie/archive/2008/01/17/38961.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Thu, 17 Jan 2008 03:49:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2008/01/17/38961.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/38961.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2008/01/17/38961.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/38961.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/38961.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 在Autoit中实现VB的Timer控件，用过VB的人都知道Timer控件，即在一段时间间隔内重复运行一段代码，此间暂停脚本运行，这一点和Autoit的AdlibEnable函数很相似。但与之不同的是前者可以建立无数个Timer控件，而后者只能AdlibEnable一次。<br><br>#Include <Date.au3><br>#include <GuiConstants.au3>&nbsp;&nbsp;<a href='http://www.cnitblog.com/stjie/archive/2008/01/17/38961.html'>阅读全文</a><img src ="http://www.cnitblog.com/stjie/aggbug/38961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2008-01-17 11:49 <a href="http://www.cnitblog.com/stjie/archive/2008/01/17/38961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AutoIT获取本机用户SID函数（转载）</title><link>http://www.cnitblog.com/stjie/archive/2008/01/17/38958.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Thu, 17 Jan 2008 03:35:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2008/01/17/38958.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/38958.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2008/01/17/38958.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/38958.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/38958.html</trackback:ping><description><![CDATA[如题，在论坛找到，改了一下，功能是返回用户的SID<br>$UserName="administrator"<br>MsgBox(64,"",GetSID($UserName)<br>Func GetSID($user)<br>;~ $user = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") ;取当前登录用户的名称<br>$objWMIService = ObjGet("winmgmts:\\" &amp; "localhost" &amp; "\root\CIMV2")<br>$colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_UserAccount", "WQL")<br>For $objItem In $colItems<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $username = StringSplit($objItem.Caption, "\", 1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If $username[2] = $user Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return $objItem.SID<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndIf<br>next<br>EndFunc<br>
<img src ="http://www.cnitblog.com/stjie/aggbug/38958.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2008-01-17 11:35 <a href="http://www.cnitblog.com/stjie/archive/2008/01/17/38958.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AutoIT使用多线程（转载）</title><link>http://www.cnitblog.com/stjie/archive/2008/01/15/38873.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Tue, 15 Jan 2008 04:07:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2008/01/15/38873.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/38873.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2008/01/15/38873.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/38873.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/38873.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 源处：http://hi.baidu.com/zhch_ao/blog/item/6025f7354eff9889a61e1247.html<br>一直以来Autoit都不支持多线程，因此一些需要同时运行多个循环的操作也就无法实现。这个问题在其它的某些语言里也经常出现，解决的方法就是使用多进程。<br>&nbsp;&nbsp;<a href='http://www.cnitblog.com/stjie/archive/2008/01/15/38873.html'>阅读全文</a><img src ="http://www.cnitblog.com/stjie/aggbug/38873.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2008-01-15 12:07 <a href="http://www.cnitblog.com/stjie/archive/2008/01/15/38873.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AutoIT的IP格式判断函数</title><link>http://www.cnitblog.com/stjie/archive/2007/12/15/37725.html</link><dc:creator>疾风随影</dc:creator><author>疾风随影</author><pubDate>Sat, 15 Dec 2007 03:15:00 GMT</pubDate><guid>http://www.cnitblog.com/stjie/archive/2007/12/15/37725.html</guid><wfw:comment>http://www.cnitblog.com/stjie/comments/37725.html</wfw:comment><comments>http://www.cnitblog.com/stjie/archive/2007/12/15/37725.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/stjie/comments/commentRss/37725.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/stjie/services/trackbacks/37725.html</trackback:ping><description><![CDATA[最近突然想写个工具集合，包含了IP的设置，查了资料自己写了个IP格式判断的<br>Func PDGS($value)<br>&nbsp; &nbsp; &nbsp; &nbsp; $IP=StringSplit($value,".") <br>&nbsp; &nbsp; &nbsp; &nbsp; If $IP[0]=4 Then&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For $i=1 to 4 <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $csz=$IP[$i]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bdz="^\d{1,3}$" <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $aReturn = StringRegExp($csz,$bdz, 3)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Not IsArray($aReturn) Then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(64,"警告",$value &amp; " 中的 " &amp; $csz &amp; " 不是有效IP地址范围！")<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If $csz &gt; 255 Then&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(64,"警告",$value &amp; " 中的 " &amp; $csz &amp; " IP数值超出！")<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EndIf<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EndIf ;====&gt;Not IsArray<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return True<br>&nbsp; &nbsp; &nbsp; &nbsp; Else<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox(64,"警告",$value &amp; " IP地址格式错误！")&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return False<br>&nbsp; &nbsp; &nbsp; &nbsp; EndIf<br>EndFunc 
<img src ="http://www.cnitblog.com/stjie/aggbug/37725.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stjie/" target="_blank">疾风随影</a> 2007-12-15 11:15 <a href="http://www.cnitblog.com/stjie/archive/2007/12/15/37725.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>