<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>榆树网 &#187; AutoHotKey</title>
	<atom:link href="http://www.wenzk.com/archives/tag/autohotkey/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenzk.com</link>
	<description>http://www.wenzk.com</description>
	<lastBuildDate>Fri, 03 Sep 2010 13:37:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AutoHotKey-梦里寻她千百度</title>
		<link>http://www.wenzk.com/archives/543</link>
		<comments>http://www.wenzk.com/archives/543#comments</comments>
		<pubDate>Thu, 07 Jan 2010 12:45:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[热键]]></category>
		<category><![CDATA[鼠标点击]]></category>
		<category><![CDATA[鼠标点击精灵]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=543</guid>
		<description><![CDATA[在此之前，由于工作需要，曾经使用过其他一些鼠标点击软件，如：鼠标点击精灵，但是软件的功能、稳定性和可扩展性都不够，程序相对说来比较死板。近日，使用VLC转播电视节目，在Win下的VLC长期运行会意外出错，并且询问是否提交反馈，此时就需要人为干预，一开始试着找寻关闭此对话框的方法，最终Google到这样一篇文章，还好通过Google翻译后还是能够看懂的：http://www.wenzk.com/archives/539，作者提到使用AutoHotKey这个软件，并且提供一个可以关闭VLC错误对话框的脚本，感觉这个软件应该比较强大。 在访问官方网站：http://www.autohotkey.com，简单浏览了一下软件的功能和Quick-start Tutorial，增加对这个软件的信心： 1、AutoHotKey是Windows下的一个开源软件。 2、可以模拟键盘输入和鼠标击键，并且可以编写宏或录制宏来实现程序自动化。 3、为键盘、鼠标和游戏杆创建热键，这些热键也可以是组合键。 4、自动扩展你的输入，如输入：btw自动扩展成：by the way。 5、将脚本转换成一个可执行的exe文件。 等等还有诸多功能。 参考Quick-start Tutorial和Command Reference后编写了一个脚本，为一些常用的程序设置了快捷键，并且很好的处理了一些程序之间的依赖关系。（如：启动Putty之前检查Pageant是否已经在后台运行等等）。 ; HotKeys Index ; Win+K        打开KeePass程序 ; Ctrl+Alt+F    打开Firefox程序 ; Ctrl+Alt+P    打开Putty程序 ; Ctrl+Alt+N    打开记事本 ; Ctrl+Alt+V    打开Notepad2 ; Ctrl+Alt+C    打开计算器 ; Ctrl+Alt+Q    打开QQ程序 ; Functions ; check_keepass()    Check Keepass is Open or not ; functions for check keepass running [...]]]></description>
			<content:encoded><![CDATA[<p>在此之前，由于工作需要，曾经使用过其他一些鼠标点击软件，如：鼠标点击精灵，但是软件的功能、稳定性和可扩展性都不够，程序相对说来比较死板。近日，使用VLC转播电视节目，在Win下的VLC长期运行会意外出错，并且询问是否提交反馈，此时就需要人为干预，一开始试着找寻关闭此对话框的方法，最终Google到这样一篇文章，还好通过Google翻译后还是能够看懂的：<a href="http://www.wenzk.com/archives/539" target="_blank">http://www.wenzk.com/archives/539</a>，作者提到使用AutoHotKey这个软件，并且提供一个可以关闭VLC错误对话框的脚本，感觉这个软件应该比较强大。</p>
<p><span id="more-543"></span>在访问官方网站：http://www.autohotkey.com，简单浏览了一下软件的功能和<a href="http://www.autohotkey.com/docs/Tutorial.htm">Quick-start  Tutorial</a>，增加对这个软件的信心：</p>
<p>1、AutoHotKey是Windows下的一个开源软件。</p>
<p>2、可以模拟键盘输入和鼠标击键，并且可以编写宏或录制宏来实现程序自动化。</p>
<p>3、为键盘、鼠标和游戏杆创建热键，这些热键也可以是组合键。</p>
<p>4、自动扩展你的输入，如输入：btw自动扩展成：by the way。</p>
<p>5、将脚本转换成一个可执行的exe文件。</p>
<p>等等还有诸多功能。</p>
<p>参考<a href="http://www.autohotkey.com/docs/Tutorial.htm">Quick-start   Tutorial</a>和<a href="http://www.autohotkey.com/docs/commands.htm">Command Reference</a>后编写了一个脚本，为一些常用的程序设置了快捷键，并且很好的处理了一些程序之间的依赖关系。（如：启动Putty之前检查Pageant是否已经在后台运行等等）。</p>
<blockquote>
<pre>; HotKeys Index
; Win+K        打开KeePass程序
; Ctrl+Alt+F    打开Firefox程序
; Ctrl+Alt+P    打开Putty程序
; Ctrl+Alt+N    打开记事本
; Ctrl+Alt+V    打开Notepad2
; Ctrl+Alt+C    打开计算器
; Ctrl+Alt+Q    打开QQ程序

; Functions
; check_keepass()    Check Keepass is Open or not

; functions for check keepass running or not
check_keepass(){
DetectHiddenWindows, on
SetTitleMatchMode, 2
IfWinNotExist - KeePass Password Safe
{
Run %A_ProgramFiles%\KeePass\KeePass.exe D:\test.kdbx
sleep,1000
loop {
IfWinActive, Open Database -
sleep,100
else
{
; 检查是否输入错误密码
sleep,100
IfWinExist KeePass,Failed to load the specified file!
{
WinActivate
ControlFocus, 确定,KeePass,Failed to load the specified file!
send {Enter}
sleep,2000
}
else
break
}
}
}
}

; Start Keepass
#k::check_keepass()

; Check Pageant &amp;&amp; start Putty
^!p::
check_keepass()
DetectHiddenWindows, on
IfWinNotExist Pageant
{
Run %A_ProgramFiles%\putty\PAGEANT.EXE D:\test.PPK
sleep,1000
loop {
IfWinActive, Pageant: Enter Passphrase
sleep,100
else
break
}
}

ifWinExist PuTTY Configuration
WinActivate
else
Run %A_ProgramFiles%\putty\putty.exe
return

; Check &amp; Open Notepad
^!n::
IfWinExist 无标题 - 记事本
WinActivate
else
Run Notepad
return

; Check &amp; Open Notepad2
^!v::
IfWinExist Untitled - Notepad2
WinActivate
else
Run vi
return

; Check &amp; Open Calulator
^!c::
IfWinExist 计算器
WinActivate
else
Run calc
return

; Open or Active Firefox
^!f::
check_keepass()
SetTitleMatchMode, 2
IfWinExist Mozilla Firefox
WinActivate
else
Run %A_ProgramFiles%\Mozilla Firefox 3.6 Beta 5\firefox.exe
return

; Check &amp; Open QQ
^!q::
check_keepass()
IfWinExist QQ2009
WinActivate
else
Run %A_ProgramFiles%\Tencent\QQ\Bin\QQ.exe
return
</pre>
</blockquote>
<p>以上脚本创建了一些快捷键，并且在启动程序间检查相关依赖性，在启动Firefox、QQ、Pageant之前启动Keepass这个密码管理程序，在启动Putty之前启动Pageant程序。</p>
<p>当然AutoHotKey程序远比上面脚本中强大得多，具体可以参考官方的相关文档。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/541" title="AutoHotkey is a free, open-source utility for Windows">AutoHotkey is a free, open-source utility for Windows</a> (0)</li><li><a href="http://www.wenzk.com/archives/539" title="VLC disable error messages (error messages suppressed)">VLC disable error messages (error messages suppressed)</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/543/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AutoHotkey is a free, open-source utility for Windows</title>
		<link>http://www.wenzk.com/archives/541</link>
		<comments>http://www.wenzk.com/archives/541#comments</comments>
		<pubDate>Thu, 07 Jan 2010 00:52:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[鼠标精灵]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=541</guid>
		<description><![CDATA[AutoHotkey is a free, open-source utility for Windows. With it, you can: Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder. Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey. Expand abbreviations [...]]]></description>
			<content:encoded><![CDATA[<p>AutoHotkey is a free, open-source utility for  Windows. With it, you can:</p>
<p><span id="more-541"></span></p>
<ul>
<li>Automate almost anything by sending keystrokes and mouse clicks.  You can write a <a href="http://www.autohotkey.com/docs/misc/Macros.htm">mouse  or keyboard macro</a> by hand or use the macro recorder.</li>
<li>Create <a href="http://www.autohotkey.com/docs/Hotkeys.htm">hotkeys</a> for keyboard, joystick, and mouse. Virtually any key, button, or  combination can become a hotkey.</li>
<li><a href="http://www.autohotkey.com/docs/Hotstrings.htm">Expand  abbreviations</a> as you type them. For example, typing &#8220;btw&#8221; can  automatically produce &#8220;by the way&#8221;.</li>
<li>Create custom data-entry forms, user interfaces, and menu bars.  See <a href="http://www.autohotkey.com/docs/commands/Gui.htm">GUI</a> for details.</li>
<li><a href="http://www.autohotkey.com/docs/misc/Remap.htm">Remap</a> keys and buttons on your keyboard, joystick, and mouse.</li>
<li>Respond to signals from hand-held remote controls via the <a href="http://www.autohotkey.com/docs/scripts/WinLIRC.htm">WinLIRC client  script</a>.</li>
<li>Run existing AutoIt v2 scripts and enhance them with <a href="http://www.autohotkey.com/docs/AutoIt2Users.htm">new capabilities</a>.</li>
<li>Convert any script into an <a href="http://www.autohotkey.com/docs/Scripts.htm#ahk2exe">EXE file</a> that can be run on computers that don&#8217;t have AutoHotkey installed.</li>
</ul>
<p>Getting started might be easier than you think. Check  out the <a href="http://www.autohotkey.com/docs/Tutorial.htm">quick-start  tutorial</a>.</p>
<p>可以通过脚本自定义按键或点击鼠标，功能应该是蛮强大，并且比较自由，以前为了达到相同的效果使用鼠标点击精灵，但是也有诸多限制。这个是开源的，哈哈。。。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/907" title="Video Blogging using Django and Flash(tm) Video (FLV)">Video Blogging using Django and Flash(tm) Video (FLV)</a> (0)</li><li><a href="http://www.wenzk.com/archives/543" title="AutoHotKey-梦里寻她千百度">AutoHotKey-梦里寻她千百度</a> (1)</li><li><a href="http://www.wenzk.com/archives/539" title="VLC disable error messages (error messages suppressed)">VLC disable error messages (error messages suppressed)</a> (0)</li><li><a href="http://www.wenzk.com/archives/977" title="如何免费搭建自己的vps服务器？">如何免费搭建自己的vps服务器？</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/541/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VLC disable error messages (error messages suppressed)</title>
		<link>http://www.wenzk.com/archives/539</link>
		<comments>http://www.wenzk.com/archives/539#comments</comments>
		<pubDate>Thu, 07 Jan 2010 00:48:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[榆树网-系统]]></category>
		<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[自动按键]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=539</guid>
		<description><![CDATA[VLC from throws and not turn-off errors in a separate error window [1] [2] [3]. These errors particularly annoying when VLC is operated with a remote control or keyboard. Also setting the &#8220;verbose level&#8221; ( &#8220;Verbosity&#8221;) to &#8220;0&#8243; or the quiet switch &#8220;be quiet&#8221; ( &#8220;Be&#8221;) under &#8220;Tools-&#62; Settings&#8221; ( &#8220;Tools-&#62; Preferences) does not prevent [...]]]></description>
			<content:encoded><![CDATA[<p>VLC from throws  and not turn-off errors in a separate error window [1] [2] [3]. These errors particularly annoying when VLC  is operated with a remote control or keyboard. Also setting the &#8220;verbose level&#8221; ( &#8220;Verbosity&#8221;)  to &#8220;0&#8243; or the quiet switch &#8220;be quiet&#8221; ( &#8220;Be&#8221;) under &#8220;Tools-&gt;  Settings&#8221; ( &#8220;Tools-&gt; Preferences) does not prevent VLC still sporadic  error messages. The problem can be solved but with  <a href="http://www.autohotkey.com/" target="_blank">AutoHotkey</a> and a corresponding script. This script monitors the open window in  Windows and includes an error occurs, the information window of VLC.</p>
<p><span id="more-539"></span></p>
<blockquote>
<pre>SetTitleMatchMode, 3
Loop
{
	; English and German
	if WinExist("Errors ahk_class QWidget")
	   or WinExist("Fehler ahk_class QWidget")
	{
		WinKill ; Close
		WinWaitClose
		;MsgBox Closed Error
	}

	; Error Message after Crash
	IfWinExist, VLC media player ahk_class #32770
	{
		WinKill	 ; Close
		WinWaitClose
		;MsgBox Closed Error
	}
	Sleep, 2000
}
</pre>
</blockquote>
<p>From: http://sysout.twoday.net/stories/5758698/</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/543" title="AutoHotKey-梦里寻她千百度">AutoHotKey-梦里寻她千百度</a> (1)</li><li><a href="http://www.wenzk.com/archives/541" title="AutoHotkey is a free, open-source utility for Windows">AutoHotkey is a free, open-source utility for Windows</a> (0)</li><li><a href="http://www.wenzk.com/archives/940" title="Windows下循环启动VLC的脚本">Windows下循环启动VLC的脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/938" title="Windows下VLC状态检查脚本">Windows下VLC状态检查脚本</a> (0)</li><li><a href="http://www.wenzk.com/archives/903" title="FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工">FlyTv PCIe X1 DMB-TH Hybrid卡无故罢工</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/539/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
