<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Macro</id>
	<title>Macro - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Macro"/>
	<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Macro&amp;action=history"/>
	<updated>2026-07-21T16:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.5</generator>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Macro&amp;diff=70721&amp;oldid=prev</id>
		<title>99.239.146.253: cat</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Macro&amp;diff=70721&amp;oldid=prev"/>
		<updated>2011-05-29T23:10:41Z</updated>

		<summary type="html">&lt;p&gt;cat&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:10, 29 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l231&quot; &gt;Line 231:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 231:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.autohotkey.com/docs/KeyList.htm List of special key aliases]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.autohotkey.com/docs/KeyList.htm List of special key aliases]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:User interface]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>99.239.146.253</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Macro&amp;diff=70672&amp;oldid=prev</id>
		<title>Tjr: see also: screen, bumpkill, paste</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Macro&amp;diff=70672&amp;oldid=prev"/>
		<updated>2011-05-29T13:44:38Z</updated>

		<summary type="html">&lt;p&gt;see also: screen, bumpkill, paste&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:44, 29 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l225&quot; &gt;Line 225:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 225:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;tt&amp;gt;k&amp;lt;/tt&amp;gt; for using a key/lockpick instead of kicking.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;lt;tt&amp;gt;k&amp;lt;/tt&amp;gt; for using a key/lockpick instead of kicking.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==See Also==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* GNU [[screen]] does similar things on unixoid computers.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** e. g. [[Talk:Pacifist#No_more_bump-kills:_Remapping_the_vi_movement_commands_with_screen|remapping the movement keys]] to avoid breaking pacifist conduct,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** [[Paste]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.autohotkey.com/docs/KeyList.htm List of special key aliases]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.autohotkey.com/docs/KeyList.htm List of special key aliases]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tjr</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Macro&amp;diff=70663&amp;oldid=prev</id>
		<title>Bhaak: replace wikia links</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Macro&amp;diff=70663&amp;oldid=prev"/>
		<updated>2011-05-29T07:50:44Z</updated>

		<summary type="html">&lt;p&gt;replace wikia links&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:50, 29 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		MsgBox 16, Error, Icon is missing! Make sure if any file with .ico extension is present in Nethack directory.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		MsgBox 16, Error, Icon is missing! Make sure if any file with .ico extension is present in Nethack directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		Run http://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nethack.wikia&lt;/del&gt;.com/wiki/Macro#icon&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		Run http://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;nethackwiki&lt;/ins&gt;.com/wiki/Macro#icon&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		ExitApp&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		ExitApp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	MsgBox 16, Error, trigger.ahk not exist! You will be redirected to trigger.ahk source code.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	MsgBox 16, Error, trigger.ahk not exist! You will be redirected to trigger.ahk source code.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	Run http://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nethack.wikia&lt;/del&gt;.com/wiki/Macro#trigger&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	Run http://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;nethackwiki&lt;/ins&gt;.com/wiki/Macro#trigger&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	ExitApp&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	ExitApp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot; &gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ^w::&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ^w::&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  { ;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;WikiHack &lt;/del&gt;Search Engine&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  { ;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;NetHackWiki &lt;/ins&gt;Search Engine&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	InputBox, sWiki, Search on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;WikiHack&lt;/del&gt;, , , , 100&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	InputBox, sWiki, Search on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;NetHackWiki&lt;/ins&gt;, , , , 100&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	if sWiki !=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	if sWiki !=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		Run http://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nethack.wikia&lt;/del&gt;.com/index.php?search=%sWiki%&amp;amp;fulltext=0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		Run http://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;nethackwiki&lt;/ins&gt;.com/index.php?search=%sWiki%&amp;amp;fulltext=0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	return&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	return&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l209&quot; &gt;Line 209:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 209:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To view a full list of created macro triggers and actions press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; then &amp;lt;tt&amp;gt;ENTER&amp;lt;/tt&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To view a full list of created macro triggers and actions press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; then &amp;lt;tt&amp;gt;ENTER&amp;lt;/tt&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To delete a macro press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; next input it's trigger key and leave macro action empty. You will be asked to remove it.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To delete a macro press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; next input it's trigger key and leave macro action empty. You will be asked to remove it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Press &amp;lt;tt&amp;gt;CTRL+W&amp;lt;/tt&amp;gt; and input a keyword. You will be redirected to appropriate &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;WikiHack &lt;/del&gt;article.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Press &amp;lt;tt&amp;gt;CTRL+W&amp;lt;/tt&amp;gt; and input a keyword. You will be redirected to appropriate &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;NetHackWiki &lt;/ins&gt;article.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Sample macros ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Sample macros ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bhaak</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Macro&amp;diff=70661&amp;oldid=prev</id>
		<title>Bhaak: copy from other wiki. Only contributor: Kamil Pawełkiewicz</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Macro&amp;diff=70661&amp;oldid=prev"/>
		<updated>2011-05-29T07:41:47Z</updated>

		<summary type="html">&lt;p&gt;copy from other wiki. Only contributor: &lt;a href=&quot;/index.php?title=User:Kamil_Pawe%C5%82kiewicz&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Kamil Pawełkiewicz (page does not exist)&quot;&gt;Kamil Pawełkiewicz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:macrosystem.jpg|thumb|right|200px|This is how the macro system looks like]]&lt;br /&gt;
This page contains help on making a simple and powerful '''macro system''' in NetHack.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
This was tested on: ''WinXP SP3 + nethack-343-win'' &amp;lt;tt&amp;gt;(NetHackW.exe)&amp;lt;/tt&amp;gt;&lt;br /&gt;
*Download ''AutoHotkey Basic'' installer http://www.autohotkey.com/download/&lt;br /&gt;
*Install ''AutoHotkey Basic''&lt;br /&gt;
*Create &amp;lt;tt&amp;gt;runmeonce.ahk&amp;lt;/tt&amp;gt; ''AutoHotkey'' script containing following code in your NetHack directory:&lt;br /&gt;
 ;This is NethackW macro system script&lt;br /&gt;
 ;DO NOT edit unless you know what you're doing&lt;br /&gt;
 #SingleInstance ignore&lt;br /&gt;
 &lt;br /&gt;
 if A_IsCompiled &amp;lt;&amp;gt; 1&lt;br /&gt;
 { ;Create launcher file&lt;br /&gt;
 	#NoTrayIcon&lt;br /&gt;
 	Loop *.ico { ;Search for icon&lt;br /&gt;
 		sIcon = %FileList%%A_LoopFileName%&lt;br /&gt;
 		Break&lt;br /&gt;
 	}&lt;br /&gt;
 	if sIcon = &lt;br /&gt;
 	{&lt;br /&gt;
 		MsgBox 16, Error, Icon is missing! Make sure if any file with .ico extension is present in Nethack directory.&lt;br /&gt;
 		Run http://nethack.wikia.com/wiki/Macro#icon&lt;br /&gt;
 		ExitApp&lt;br /&gt;
 	}&lt;br /&gt;
 	RunWait Ahk2exe.exe /in &amp;quot;%A_ScriptFullPath%&amp;quot; /out &amp;quot;NHLauncher.exe&amp;quot; /icon &amp;quot;%sIcon%&amp;quot; /pass &amp;quot;nethack&amp;quot;,Hide&lt;br /&gt;
 	MsgBox 64, Information, Run NHLauncher.exe to start NetHack. Have fun!&lt;br /&gt;
 	FileDelete %A_ScriptFullPath%&lt;br /&gt;
 	FileDelete %sIcon%&lt;br /&gt;
 	ExitApp&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 IfNotExist trigger.ahk&lt;br /&gt;
 {&lt;br /&gt;
 	MsgBox 16, Error, trigger.ahk not exist! You will be redirected to trigger.ahk source code.&lt;br /&gt;
 	Run http://nethack.wikia.com/wiki/Macro#trigger&lt;br /&gt;
 	ExitApp&lt;br /&gt;
 }&lt;br /&gt;
 Process, Exist, NethackW.exe&lt;br /&gt;
 NewPID = %ErrorLevel% &lt;br /&gt;
 if NewPID = 0&lt;br /&gt;
 { ;Start Nethack&lt;br /&gt;
 	GoSub RunTrigger&lt;br /&gt;
 	RunWait NethackW.exe&lt;br /&gt;
 	GoSub KillTrigger	&lt;br /&gt;
 	ExitApp&lt;br /&gt;
 } else {&lt;br /&gt;
 	MsgBox 16, Error, Nethack is already running. &lt;br /&gt;
 	ExitApp&lt;br /&gt;
 }&lt;br /&gt;
 return&lt;br /&gt;
 &lt;br /&gt;
 KillTrigger:&lt;br /&gt;
 	SetTitleMatchMode, 2&lt;br /&gt;
 	DetectHiddenWindows, on&lt;br /&gt;
 	SendMessage, 0x44, 0x405, 0, , trigger.ahk - AutoHotkey v&lt;br /&gt;
 	RunWait TaskKill /pid %ErrorLevel% /fi &amp;quot;STATUS ne RUNNING&amp;quot;,,Hide&lt;br /&gt;
 return&lt;br /&gt;
 &lt;br /&gt;
 RunTrigger:&lt;br /&gt;
 	Run trigger.ahk&lt;br /&gt;
 return&lt;br /&gt;
 &lt;br /&gt;
 #ifWinActive ahk_class MSNHMainWndClass&lt;br /&gt;
 !^r::&lt;br /&gt;
 { ;Reset triggers manually&lt;br /&gt;
 	Gosub KillTrigger&lt;br /&gt;
 	Gosub RunTrigger&lt;br /&gt;
 	MsgBox 0, Information, Triggers script restarted&lt;br /&gt;
 	return&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ^w::&lt;br /&gt;
 { ;WikiHack Search Engine&lt;br /&gt;
 	InputBox, sWiki, Search on WikiHack, , , , 100&lt;br /&gt;
 	if sWiki !=&lt;br /&gt;
 		Run http://nethack.wikia.com/index.php?search=%sWiki%&amp;amp;fulltext=0&lt;br /&gt;
 	return&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ^m::&lt;br /&gt;
 { ;Add new macro&lt;br /&gt;
 	fTemp = trigger.tmp1&lt;br /&gt;
 	bFound = 0&lt;br /&gt;
 	bDelete = 0&lt;br /&gt;
 	bSuccess = 0&lt;br /&gt;
 &lt;br /&gt;
 	InputBox, sHotkey, Input trigger key,,, 200, 100&lt;br /&gt;
 	if sHotkey =&lt;br /&gt;
 	{ ;View triggers.ahk	&lt;br /&gt;
 		Loop&lt;br /&gt;
 		{&lt;br /&gt;
 			FileReadLine, sLine, trigger.ahk, %A_Index%&lt;br /&gt;
 			if ErrorLevel &lt;br /&gt;
 				break&lt;br /&gt;
 			FileAppend, %sLine%`n, %fTemp%&lt;br /&gt;
 			if ((sLine) = (&amp;quot;;In game triggers&amp;quot;))&lt;br /&gt;
 				fTemp = trigger.tmp2&lt;br /&gt;
 		}&lt;br /&gt;
 		FileRead Contents, trigger.tmp2&lt;br /&gt;
 		if Contents =&lt;br /&gt;
 			MsgBox 0, Information, Macro list is empty.&lt;br /&gt;
 		else MsgBox 0, Information, Macro file contains following entries:`n`n%Contents%&lt;br /&gt;
 		FileDelete trigger.tmp*&lt;br /&gt;
 		Contents =  ; Free the memory.&lt;br /&gt;
 		return	&lt;br /&gt;
 	}&lt;br /&gt;
 	InputBox, sAction, Input macro action,,, 200, 100&lt;br /&gt;
 	if sAction =&lt;br /&gt;
 		bDelete = 1&lt;br /&gt;
 		&lt;br /&gt;
 	Loop&lt;br /&gt;
 	{ ;Read analize and save file&lt;br /&gt;
 		FileReadLine, sLine, trigger.ahk, %A_Index%&lt;br /&gt;
 		if ErrorLevel &lt;br /&gt;
 			break&lt;br /&gt;
 		IfInString, sLine, %sHotkey%:: Send&lt;br /&gt;
 		{ ;Equal entry found!&lt;br /&gt;
 			bFound = 1&lt;br /&gt;
 			if (bDelete &amp;lt;&amp;gt; 1)&lt;br /&gt;
 			{&lt;br /&gt;
 				MsgBox, 36, Old entry found!, %sLine%`n`nReplace with Send %sAction%?&lt;br /&gt;
 				IfMsgBox Yes&lt;br /&gt;
 				{&lt;br /&gt;
 					FileAppend, %sHotkey%:: Send %sAction%`n, %fTemp%&lt;br /&gt;
 				} else FileAppend, %sLine%`n, %fTemp%&lt;br /&gt;
 				bSuccess = 1&lt;br /&gt;
 			} else { ;Entry deletion&lt;br /&gt;
 				MsgBox, 292, Entry deletion , Delete entry %sLine%?	&lt;br /&gt;
 				IfMsgBox No&lt;br /&gt;
 					FileAppend, %sLine%`n, %fTemp%					&lt;br /&gt;
 				bSuccess = 1&lt;br /&gt;
 			}&lt;br /&gt;
 		} else FileAppend, %sLine%`n, %fTemp%&lt;br /&gt;
 		if ((sLine) = (&amp;quot;;In game triggers&amp;quot;))&lt;br /&gt;
 			fTemp = trigger.tmp2&lt;br /&gt;
 	}&lt;br /&gt;
 	if (bFound = 0)&lt;br /&gt;
 	{&lt;br /&gt;
 		if (bDelete &amp;lt;&amp;gt; 1)&lt;br /&gt;
 		{&lt;br /&gt;
 			bSuccess = 1&lt;br /&gt;
 			FileAppend %sHotkey%:: Send %sAction%`n, %fTemp%&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 	if (bSuccess &amp;lt;&amp;gt; 1)&lt;br /&gt;
 		MsgBox 0, Error, Macro action cannot be empty&lt;br /&gt;
 	{ ;Merge files and clear up&lt;br /&gt;
 		FileRead Contents, trigger.tmp2&lt;br /&gt;
 		Sort, Contents&lt;br /&gt;
 		FileAppend %Contents%, trigger.tmp1&lt;br /&gt;
 		FileCopy trigger.tmp1, trigger.ahk, 1&lt;br /&gt;
 		FileDelete trigger.tmp*&lt;br /&gt;
 		Contents =  ; Free the memory.&lt;br /&gt;
 	}&lt;br /&gt;
 	GoSub KillTrigger&lt;br /&gt;
 	GoSub RunTrigger&lt;br /&gt;
 }&lt;br /&gt;
*&amp;lt;span id=&amp;quot;trigger&amp;quot;&amp;gt;Create &amp;lt;tt&amp;gt;trigger.ahk&amp;lt;/tt&amp;gt; ''AutoHotkey'' script containing following code in your NetHack directory:&amp;lt;/span&amp;gt;&lt;br /&gt;
 #NoTrayIcon&lt;br /&gt;
 #SingleInstance ignore&lt;br /&gt;
 &lt;br /&gt;
 MapScrollSteps = 28&lt;br /&gt;
 &lt;br /&gt;
 #IfWinActive ahk_class MSNHMainWndClass&lt;br /&gt;
 /:: &lt;br /&gt;
 	Loop 5 {&lt;br /&gt;
 		Send s &lt;br /&gt;
 	}&lt;br /&gt;
 	return&lt;br /&gt;
 &lt;br /&gt;
 ;Diagonal movement remapping&lt;br /&gt;
 ^a:: Send {Home}&lt;br /&gt;
 ^s:: Send {Pgup}&lt;br /&gt;
 ^z:: Send {End}&lt;br /&gt;
 ^x:: Send {Pgdn}&lt;br /&gt;
 &lt;br /&gt;
 ;Map scrolling left&lt;br /&gt;
 ^Left:: &lt;br /&gt;
 	Loop %MapScrollSteps% {&lt;br /&gt;
 		Send ^{Left}&lt;br /&gt;
 	}&lt;br /&gt;
 	return&lt;br /&gt;
 &lt;br /&gt;
 ;Map scrolling right&lt;br /&gt;
 ^Right:: &lt;br /&gt;
 	Loop %MapScrollSteps% {&lt;br /&gt;
 		Send ^{Right}&lt;br /&gt;
 	}&lt;br /&gt;
 	return&lt;br /&gt;
 &lt;br /&gt;
 ;WARNING! Leave one empty line at the end of file&lt;br /&gt;
 ;In game triggers&lt;br /&gt;
 !Down:: Send o{Down}&lt;br /&gt;
 !Left:: Send o{Left}&lt;br /&gt;
 !Right:: Send o{Right}&lt;br /&gt;
 !Up:: Send o{Up}&lt;br /&gt;
 F12:: Send Oi{Enter}Oi{Enter}&lt;br /&gt;
*&amp;lt;span id=&amp;quot;icon&amp;quot;&amp;gt;Download custom .ico file and save it in your NetHack directory (for example: http://findicons.com/icon/257701/d12_128x128) Script will automatically use first .ico file in alphabetical order.&amp;lt;/span&amp;gt;&lt;br /&gt;
*Run &amp;lt;tt&amp;gt;runmeonce.ahk&amp;lt;/tt&amp;gt; to compile a script&lt;br /&gt;
== In-game usage ==&lt;br /&gt;
*Run &amp;lt;tt&amp;gt;NHLauncher.exe&amp;lt;/tt&amp;gt; to start NetHack.&lt;br /&gt;
*Press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; during the game and follow the on screen instructions to add a new macro action&lt;br /&gt;
Example: If you want to make a macro for casting your first spell (for instance to cast ''Extra healing'' on yourself)&lt;br /&gt;
 press CTRL+M&lt;br /&gt;
 Input trigger key: F1&lt;br /&gt;
 Input macro action: Za.&lt;br /&gt;
Macro has been created and can be used immediately.&lt;br /&gt;
*To view a full list of created macro triggers and actions press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; then &amp;lt;tt&amp;gt;ENTER&amp;lt;/tt&amp;gt;&lt;br /&gt;
*To delete a macro press &amp;lt;tt&amp;gt;CTRL+M&amp;lt;/tt&amp;gt; next input it's trigger key and leave macro action empty. You will be asked to remove it.&lt;br /&gt;
*Press &amp;lt;tt&amp;gt;CTRL+W&amp;lt;/tt&amp;gt; and input a keyword. You will be redirected to appropriate WikiHack article.&lt;br /&gt;
&lt;br /&gt;
== Sample macros ==&lt;br /&gt;
There are already few macros in standard &amp;lt;tt&amp;gt;trigger.ahk&amp;lt;/tt&amp;gt; file. Seaching macro can be removed only by editing a file so, if you don't need it you'll have to edit it by yourself.&lt;br /&gt;
Included macros:&lt;br /&gt;
*Diagonal directions key mapping for laptops with uncomfortable position of &amp;lt;tt&amp;gt;[Home, End, Page Up, Page Down]&amp;lt;/tt&amp;gt; keys changed to &amp;lt;tt&amp;gt;CTRL+[A, Z, S, X]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*Searching for 5 turns by pressing / key.&lt;br /&gt;
*&amp;lt;tt&amp;gt;F12&amp;lt;/tt&amp;gt; sorts inventory letters&lt;br /&gt;
*&amp;lt;tt&amp;gt;ALT+[Direction]&amp;lt;/tt&amp;gt; opens a door&lt;br /&gt;
*&amp;lt;tt&amp;gt;CTRL+[Left, Right]&amp;lt;/tt&amp;gt;Scrolls map smoothly. Change variable ''MapScrollSteps'' in &amp;lt;tt&amp;gt;trigger.ahk&amp;lt;/tt&amp;gt; to adjust scroll range.&lt;br /&gt;
You can make your own macros during the game as well. Examples:&lt;br /&gt;
*&amp;lt;tt&amp;gt;TAB&amp;lt;/tt&amp;gt; key to apply an oil lamp.&lt;br /&gt;
*&amp;lt;tt&amp;gt;F1,F2&amp;lt;/tt&amp;gt; to cast offensive spells.&lt;br /&gt;
*&amp;lt;tt&amp;gt;F3,F4&amp;lt;/tt&amp;gt; to wear different sets of armor.&lt;br /&gt;
*&amp;lt;tt&amp;gt;k&amp;lt;/tt&amp;gt; for using a key/lockpick instead of kicking.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
[http://www.autohotkey.com/docs/KeyList.htm List of special key aliases]&lt;/div&gt;</summary>
		<author><name>Bhaak</name></author>
		
	</entry>
</feed>