<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《从AutoHotkey启动程序说起》的评论</title>
	<atom:link href="http://xbeta.info/ahk-1.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://xbeta.info/ahk-1.htm</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 12:17:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：dawn</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-30262</link>
		<dc:creator>dawn</dc:creator>
		<pubDate>Sat, 10 Dec 2011 05:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-30262</guid>
		<description>@爱让一切都对了, http://cn.autohotkey.com/docs/Tutorial.htm
&lt;div class=&quot;vote&quot; id=&quot;vote-30262&quot;&gt;&lt;span id=&quot;acv_stat_30262&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-30262&quot; href=&quot;javascript:acv_vote(30262,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-30262&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>@爱让一切都对了, <a href="http://cn.autohotkey.com/docs/Tutorial.htm" rel="nofollow">http://cn.autohotkey.com/docs/Tutorial.htm</a></p>
<div class="vote" id="vote-30262"><span id="acv_stat_30262"></span><a class="acvclick acv4" id="vote4-30262" href="javascript:acv_vote(30262,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-30262">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：爱让一切都对了</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-30258</link>
		<dc:creator>爱让一切都对了</dc:creator>
		<pubDate>Fri, 09 Dec 2011 15:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-30258</guid>
		<description>我刚下载AutoHotkey，它自动创建了一个脚本，然后显示
Script lines most recently executed (oldest first).  Press [F5] to refresh.  The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0).  The bottommost line&#039;s elapsed time is the number of seconds since it executed.

016: Return (2.62)

Press [F5] to refresh.

我应该怎么编辑它?
&lt;div class=&quot;vote&quot; id=&quot;vote-30258&quot;&gt;&lt;span id=&quot;acv_stat_30258&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-30258&quot; href=&quot;javascript:acv_vote(30258,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-30258&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>我刚下载AutoHotkey，它自动创建了一个脚本，然后显示<br />
Script lines most recently executed (oldest first).  Press [F5] to refresh.  The seconds elapsed between a line and the one after it is in parentheses to the right (if not 0).  The bottommost line&#8217;s elapsed time is the number of seconds since it executed.</p>
<p>016: Return (2.62)</p>
<p>Press [F5] to refresh.</p>
<p>我应该怎么编辑它?</p>
<div class="vote" id="vote-30258"><span id="acv_stat_30258"></span><a class="acvclick acv4" id="vote4-30258" href="javascript:acv_vote(30258,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-30258">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：aptx4869</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-28662</link>
		<dc:creator>aptx4869</dc:creator>
		<pubDate>Wed, 31 Aug 2011 03:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-28662</guid>
		<description>@simon, 
Yes we can!
看这个文档
http://www.autohotkey.net/~AHKCN/docs/commands/_IfWinActive.htm
&lt;div class=&quot;vote&quot; id=&quot;vote-28662&quot;&gt;&lt;span id=&quot;acv_stat_28662&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-28662&quot; href=&quot;javascript:acv_vote(28662,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-28662&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>@simon,<br />
Yes we can!<br />
看这个文档<br />
<a href="http://www.autohotkey.net/~AHKCN/docs/commands/_IfWinActive.htm" rel="nofollow">http://www.autohotkey.net/~AHKCN/docs/commands/_IfWinActive.htm</a></p>
<div class="vote" id="vote-28662"><span id="acv_stat_28662"></span><a class="acvclick acv4" id="vote4-28662" href="javascript:acv_vote(28662,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-28662">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：aptx4869</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-28661</link>
		<dc:creator>aptx4869</dc:creator>
		<pubDate>Wed, 31 Aug 2011 03:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-28661</guid>
		<description>@youvo, 
“在依次按下了键盘字母 ”abc”后就执行”
这句话说的不太明白，是abc一起按，还是依次按下然后放开a b c……

不过你可以看看这个文档：
http://www.autohotkey.net/~AHKCN/docs/Hotstrings.htm
这也许是你需要的
&lt;div class=&quot;vote&quot; id=&quot;vote-28661&quot;&gt;&lt;span id=&quot;acv_stat_28661&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-28661&quot; href=&quot;javascript:acv_vote(28661,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-28661&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>@youvo,<br />
“在依次按下了键盘字母 ”abc”后就执行”<br />
这句话说的不太明白，是abc一起按，还是依次按下然后放开a b c……</p>
<p>不过你可以看看这个文档：<br />
<a href="http://www.autohotkey.net/~AHKCN/docs/Hotstrings.htm" rel="nofollow">http://www.autohotkey.net/~AHKCN/docs/Hotstrings.htm</a><br />
这也许是你需要的</p>
<div class="vote" id="vote-28661"><span id="acv_stat_28661"></span><a class="acvclick acv4" id="vote4-28661" href="javascript:acv_vote(28661,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-28661">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：simon</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-28020</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Thu, 28 Jul 2011 15:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-28020</guid>
		<description>不知道AHK能不能仅在某个程序中检测快捷键，其它程序中则忽略掉它；
其实是想在本地存一些常用命令，只在putty中才启用这些快捷键，这样冲突也会少很多
&lt;div class=&quot;vote&quot; id=&quot;vote-28020&quot;&gt;&lt;span id=&quot;acv_stat_28020&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-28020&quot; href=&quot;javascript:acv_vote(28020,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-28020&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>不知道AHK能不能仅在某个程序中检测快捷键，其它程序中则忽略掉它；<br />
其实是想在本地存一些常用命令，只在putty中才启用这些快捷键，这样冲突也会少很多</p>
<div class="vote" id="vote-28020"><span id="acv_stat_28020"></span><a class="acvclick acv4" id="vote4-28020" href="javascript:acv_vote(28020,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-28020">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：youvo</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-27674</link>
		<dc:creator>youvo</dc:creator>
		<pubDate>Thu, 14 Jul 2011 02:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-27674</guid>
		<description>如何定义纯字母的快捷键呢？比如我定义 ”abc”触发一个功能 在依次按下了键盘字母 ”abc”后就执行。而不是用windows、Alt、shift等键，因为这些键容易被占用！
&lt;div class=&quot;vote&quot; id=&quot;vote-27674&quot;&gt;&lt;span id=&quot;acv_stat_27674&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-27674&quot; href=&quot;javascript:acv_vote(27674,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-27674&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>如何定义纯字母的快捷键呢？比如我定义 ”abc”触发一个功能 在依次按下了键盘字母 ”abc”后就执行。而不是用windows、Alt、shift等键，因为这些键容易被占用！</p>
<div class="vote" id="vote-27674"><span id="acv_stat_27674"></span><a class="acvclick acv4" id="vote4-27674" href="javascript:acv_vote(27674,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-27674">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：hi_lucky</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-27463</link>
		<dc:creator>hi_lucky</dc:creator>
		<pubDate>Wed, 29 Jun 2011 04:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-27463</guid>
		<description>@aptx4869, 谢谢，你的脚本非常好用，实用。
&lt;div class=&quot;vote&quot; id=&quot;vote-27463&quot;&gt;&lt;span id=&quot;acv_stat_27463&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-27463&quot; href=&quot;javascript:acv_vote(27463,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-27463&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>@aptx4869, 谢谢，你的脚本非常好用，实用。</p>
<div class="vote" id="vote-27463"><span id="acv_stat_27463"></span><a class="acvclick acv4" id="vote4-27463" href="javascript:acv_vote(27463,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-27463">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：hi_lucky</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-27462</link>
		<dc:creator>hi_lucky</dc:creator>
		<pubDate>Wed, 29 Jun 2011 04:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-27462</guid>
		<description>在善用佳软的脚本做修改，想作一个类似的firefox应用，但不成功。
firefoxd在最小化时不能被激活，但是如果作为当前窗口，可以被最小化。估计是第三行有误，但找不出问题。请高手指点一下。谢谢。
#f::
DetectHiddenWindows, On
IfWinNotActive ahk_class MozillaWindowClass
WinActivate
Else
WinMinimize
Return
&lt;div class=&quot;vote&quot; id=&quot;vote-27462&quot;&gt;&lt;span id=&quot;acv_stat_27462&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-27462&quot; href=&quot;javascript:acv_vote(27462,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-27462&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>在善用佳软的脚本做修改，想作一个类似的firefox应用，但不成功。<br />
firefoxd在最小化时不能被激活，但是如果作为当前窗口，可以被最小化。估计是第三行有误，但找不出问题。请高手指点一下。谢谢。<br />
#f::<br />
DetectHiddenWindows, On<br />
IfWinNotActive ahk_class MozillaWindowClass<br />
WinActivate<br />
Else<br />
WinMinimize<br />
Return</p>
<div class="vote" id="vote-27462"><span id="acv_stat_27462"></span><a class="acvclick acv4" id="vote4-27462" href="javascript:acv_vote(27462,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-27462">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：aptx4869</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-26343</link>
		<dc:creator>aptx4869</dc:creator>
		<pubDate>Tue, 03 May 2011 08:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-26343</guid>
		<description>俺是这样启动TC的（暂时没钱注册……）

#t::
;;; Total Commander 自动运行，点击，切换
DetectHiddenWindows, on
IfWinNotExist ahk_class TTOTAL_CMD
{
	Run C:\totalcmd\TOTALCMD.EXE
	WinWait ,Total Commander ahk_class TNASTYNAGSCREEN 
	sleep 500
	IfWinExist ,Total Commander ahk_class TNASTYNAGSCREEN 
					;;自动点击
		Winactivate 
		WinWaitActive
		ControlGetText ,TCText, TPanel2 
		if TCText = 1 
		{
			send 1
		}
		else if TCText = 2 
		{
			send 2
		}
		else
		{
			send 3
		}
	}
Else
	IfWinNotActive ahk_class TTOTAL_CMD
	WinActivate
Else
	WinMinimize
Return
&lt;div class=&quot;vote&quot; id=&quot;vote-26343&quot;&gt;&lt;span id=&quot;acv_stat_26343&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-26343&quot; href=&quot;javascript:acv_vote(26343,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-26343&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>俺是这样启动TC的（暂时没钱注册……）</p>
<p>#t::<br />
;;; Total Commander 自动运行，点击，切换<br />
DetectHiddenWindows, on<br />
IfWinNotExist ahk_class TTOTAL_CMD<br />
{<br />
	Run C:\totalcmd\TOTALCMD.EXE<br />
	WinWait ,Total Commander ahk_class TNASTYNAGSCREEN<br />
	sleep 500<br />
	IfWinExist ,Total Commander ahk_class TNASTYNAGSCREEN<br />
					;;自动点击<br />
		Winactivate<br />
		WinWaitActive<br />
		ControlGetText ,TCText, TPanel2<br />
		if TCText = 1<br />
		{<br />
			send 1<br />
		}<br />
		else if TCText = 2<br />
		{<br />
			send 2<br />
		}<br />
		else<br />
		{<br />
			send 3<br />
		}<br />
	}<br />
Else<br />
	IfWinNotActive ahk_class TTOTAL_CMD<br />
	WinActivate<br />
Else<br />
	WinMinimize<br />
Return</p>
<div class="vote" id="vote-26343"><span id="acv_stat_26343"></span><a class="acvclick acv4" id="vote4-26343" href="javascript:acv_vote(26343,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-26343">0</span>)</div>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Eric</title>
		<link>http://xbeta.info/ahk-1.htm/comment-page-1#comment-21095</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 21 Sep 2010 04:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://xbeta.info/?p=1012#comment-21095</guid>
		<description>我也有同样的需求，我的方法是判断窗口中出现的特定字符串，一旦出现，就开始动作。
例如我的环境是，要求一旦出现$, 就证明登录成功，然后执行su - root 等操作。 我写了一个函数，供你参考。
WinWaitForChar(pid,vChar,vTimeout)
{
SetTitleMatchMode 2
myclipsaved := ClipboardAll
clipboard =

  loop
  {
  PostMessage, 0x112, 0x170, 0, , ahk_pid %pid%   
   ClipWait,1
   If clipboard contains $
     {
	   clipboard :=myclipsaved
	   WinActivate ,ahk_pid %pid%
	   break
     }
   
   if A_TimeIdle &gt; %vTimeout%
     {
	   clipboard :=myclipsaved
	   break
	 }
	clipboard =
   }

}

真正调用的时候，就
Run, putty.exe -ssh -pw xxx-l xxx %myhostname%,,Max,mypid
WinWaitForChar(mypid,&quot;$&quot;,8000)

其中8000是8秒的timeout值，防止登录窗口过长时间没反应。
&lt;div class=&quot;vote&quot; id=&quot;vote-21095&quot;&gt;&lt;span id=&quot;acv_stat_21095&quot;&gt;&lt;/span&gt;&lt;a class=&quot;acvclick acv4&quot; id=&quot;vote4-21095&quot; href=&quot;javascript:acv_vote(21095,1);&quot; rel=&quot;external nofollow&quot;&gt;喜欢&lt;/a&gt;(&lt;span id=&quot;cos_support-21095&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>我也有同样的需求，我的方法是判断窗口中出现的特定字符串，一旦出现，就开始动作。<br />
例如我的环境是，要求一旦出现$, 就证明登录成功，然后执行su &#8211; root 等操作。 我写了一个函数，供你参考。<br />
WinWaitForChar(pid,vChar,vTimeout)<br />
{<br />
SetTitleMatchMode 2<br />
myclipsaved := ClipboardAll<br />
clipboard =</p>
<p>  loop<br />
  {<br />
  PostMessage, 0&#215;112, 0&#215;170, 0, , ahk_pid %pid%<br />
   ClipWait,1<br />
   If clipboard contains $<br />
     {<br />
	   clipboard :=myclipsaved<br />
	   WinActivate ,ahk_pid %pid%<br />
	   break<br />
     }</p>
<p>   if A_TimeIdle &gt; %vTimeout%<br />
     {<br />
	   clipboard :=myclipsaved<br />
	   break<br />
	 }<br />
	clipboard =<br />
   }</p>
<p>}</p>
<p>真正调用的时候，就<br />
Run, putty.exe -ssh -pw xxx-l xxx %myhostname%,,Max,mypid<br />
WinWaitForChar(mypid,”$”,8000)</p>
<p>其中8000是8秒的timeout值，防止登录窗口过长时间没反应。</p>
<div class="vote" id="vote-21095"><span id="acv_stat_21095"></span><a class="acvclick acv4" id="vote4-21095" href="javascript:acv_vote(21095,1);" rel="external nofollow">喜欢</a>(<span id="cos_support-21095">0</span>)</div>
]]></content:encoded>
	</item>
</channel>
</rss>

