<?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>MemoSoup &#187; Windows &amp; DOS</title>
	<atom:link href="http://www.memosoup.com/category/scripts/windows-scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memosoup.com</link>
	<description>Mix of the things I always forget</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>AutoIt: script for hotkeys usage</title>
		<link>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html</link>
		<comments>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html#comments</comments>
		<pubDate>Fri, 08 Apr 2011 17:15:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows & DOS]]></category>
		<category><![CDATA[autoit]]></category>
		<category><![CDATA[hotkey]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=415</guid>
		<description><![CDATA[<p>This script allows You to define the global Windows hotkeys via the configuration file.</p> <p>The syntax of the config file is simple:</p> <p> Hotkey,Program,Parameters </p> <p>Here &#8220;Hotkey&#8221; is the combination of the keyboard key with one of the identifiers:</p> <p> ^ Ctrl ! Alt + Shift # Windows-Key </p> <p>Example:</p> <p> ;Win+C &#8211; start calculator [...]]]></description>
			<content:encoded><![CDATA[<p>This script allows You to define the global Windows hotkeys via the configuration file.</p>
<p>The syntax of the config file is simple:</p>
<blockquote><p>
Hotkey,Program,Parameters
</p></blockquote>
<p>Here &#8220;Hotkey&#8221; is the combination of the keyboard key with one of the identifiers:</p>
<blockquote><p>
^ Ctrl<br />
! Alt<br />
+ Shift<br />
# Windows-Key
</p></blockquote>
<p>Example:</p>
<blockquote><p>
;Win+C &#8211; start calculator<br />
#{c},calc.exe</p>
<p>;Win+Shift+N &#8211; start notepad<br />
+#{n},notepad.exe</p>
<p>;Win+N &#8211; start notepad++ together with apploc.exe<br />
#{n},%windir%\AppPatch\AppLoc.exe,&#8221;%ProgramFiles%\Notepad++\notepad++.exe&#8221; -nosession /L0419
</p></blockquote>
<p><span id="more-415"></span></p>
<div class="codecolorer-container autoit default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #F000FF; font-style: italic;">#Include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>File<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; ^ Ctrl</span><br />
<span style="font-style: italic; color: #009933;">; ! Alt</span><br />
<span style="font-style: italic; color: #009933;">; + Shift</span><br />
<span style="font-style: italic; color: #009933;">; # Windows-Key</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a>&nbsp; <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a>&nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ENUM</span></a>&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$sPATH</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$sProgramFiles</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$sAppData</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;TrayAutoPause&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;TrayMenuMode&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$mnuReadSettings</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Read settings&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$mnuHelp</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Help&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$mnuExit</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayCreateItem.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayCreateItem</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;Exit&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a> read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/FileChangeDir.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileChangeDir</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@scriptdir</span></span></a> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Not</span></a> <span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileReadToArray</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;hotkeys.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; Error reading hotkeys.txt@CRLF error:&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; No hotkeys defined&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ReDim</span></a> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;ExpandEnvStrings&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">for</span></a> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringLen.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringLen</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringLeft.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringLeft</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;;&quot;</span> &nbsp;<span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ContinueLoop</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringSplit.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringSplit</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;,;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$lCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$lCurLine</span><span style="color: #FF0000; font-weight: bold;">&lt;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">or</span></a> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> &nbsp;<span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4096</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Error&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot; No program or hotkey defined: &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aTMPArray</span><span style="color: #FF0000; font-weight: bold;">&#91;</span> <span style="font-weight: bold; color: #AA0000;">$i_tmp</span> <span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Are the parameters for the command line?</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$lCurLine</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$sParam</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$sParam</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Switch</span></a>&nbsp; <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #9977BB;">&quot;SPECIAL&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">HotKeySet</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;_run_special&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> &nbsp; <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span>&nbsp; <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aCurLine</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$sParam</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #9977BB;">&quot; &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PARAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="font-style: italic; color: #009933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">HotKeySet</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;_run_it&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="font-style: italic; color: #009933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSwitch</span></a><br />
<br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">AutoItSetOption</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #9977BB;">&quot;ExpandEnvStrings&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; _run_special<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;No action&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #9977BB;">&quot;Reserved for future use&quot;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; _run_it<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@HotKeyPressed</span></span></a> <span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/Run.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">Run</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a>&nbsp; &nbsp; show_help<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> &nbsp; <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #9977BB;">&quot;&quot;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">for</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">to</span></a> <span style="font-weight: bold; color: #AA0000;">$MATRIX_SIZE</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_HOTKEY</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #9977BB;">&quot; &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aMatrix</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$POS_PROGRAM</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@CRLF</span></span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #9977BB;">&quot;Help&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$helpMessage</span> <span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<span style="font-style: italic; color: #009933;">; ##### Main ######</span><br />
read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/TrayGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">TrayGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Select</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuReadSettings</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read_settings<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuHelp</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; show_help<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$msg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$mnuExit</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSelect</span></a><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/Sleep.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">sleep</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">100</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">WEnd</span></a></div></div>
<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="zare366"><div style="float:left; width:100px; " class="zare366_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.memosoup.com%2F20110408%2Fautoit-script-for-hotkeys-usage.html&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="zare366_google1"> 
				<g:plusone size="medium" href="http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="zare366_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
					data-text="AutoIt: script for hotkeys usage" data-url="http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html">Tweet</a> 
			</div></div>
		<div style="display:none;"><a href="http://www.news365live.com">news and informations</a>&nbsp;<a href="http://news365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a><a href="http://worldnews365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a></div><div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20110408/autoit-script-for-hotkeys-usage.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHICH command for DOS</title>
		<link>http://www.memosoup.com/20090921/which-command-for-dos.html</link>
		<comments>http://www.memosoup.com/20090921/which-command-for-dos.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 11:59:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows & DOS]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[which]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=150</guid>
		<description><![CDATA[<p>If You need the analog of Unix &#8216;which&#8217; command and do not have Resource Kit, the following batch file will help. The code was found on www.ss64.com Published with the permission of the author, Clay Calvert.</p> @echo off SETLOCAL (set WF=) :: Look for file in the current directory for %%a in (&#34;&#34; %!!%) do [...]]]></description>
			<content:encoded><![CDATA[<p>If You need the analog of Unix &#8216;which&#8217; command and do not have Resource Kit, the following batch file will help.<br />
The code was found on <a href="http://www.ss64.com/nt/which.txt">www.ss64.com</a><br />
Published with the permission of the author, Clay Calvert.</p>
<div class="codecolorer-container dos default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #33cc33;">@</span><a href="http://www.ss64.com/nt/echo.html"><span style="color: #b1b100; font-weight: bold;">echo</span></a> off<br />
<a href="http://www.ss64.com/nt/setlocal.html"><span style="color: #b1b100; font-weight: bold;">SETLOCAL</span></a><br />
<span style="color: #33cc33;">(</span><a href="http://www.ss64.com/nt/set.html"><span style="color: #b1b100; font-weight: bold;">set</span></a> WF=<span style="color: #33cc33;">)</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: Look for file in the current directory</span><br />
<br />
<a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #33cc33;">(</span>&quot;&quot; <span style="color: #33cc33;">%</span><span style="color: #33cc33;">!!</span><span style="color: #33cc33;">%)</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <span style="color: #33cc33;">(</span><br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/not.html"><span style="color: #000000; font-weight: bold;">not</span></a> <a href="http://www.ss64.com/nt/defined.html"><span style="color: #000000; font-weight: bold;">defined</span></a> WF <a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/exist.html"><span style="color: #000000; font-weight: bold;">exist</span></a> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span><span style="color: #33cc33;">%%</span><span style="color: #448888;">~a</span>&quot; <a href="http://www.ss64.com/nt/set.html"><span style="color: #b1b100; font-weight: bold;">set</span></a> WF=<span style="color: #33cc33;">%</span><span style="color: #448888;">CD</span><span style="color: #33cc33;">%</span>\<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span><span style="color: #33cc33;">%%</span><span style="color: #448888;">~a</span><span style="color: #33cc33;">)</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: Look for file in the PATH</span><br />
<br />
<a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #33cc33;">(</span>&quot;&quot; <span style="color: #33cc33;">%</span><span style="color: #33cc33;">!!</span><span style="color: #33cc33;">%)</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <span style="color: #33cc33;">(</span><br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/not.html"><span style="color: #000000; font-weight: bold;">not</span></a> <a href="http://www.ss64.com/nt/defined.html"><span style="color: #000000; font-weight: bold;">defined</span></a> WF <a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> <span style="color: #33cc33;">%%</span><span style="color: #448888;">g</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #33cc33;">(</span>&quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span><span style="color: #33cc33;">%%</span><span style="color: #448888;">~a</span>&quot;<span style="color: #33cc33;">)</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <span style="color: #33cc33;">(</span><br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/exist.html"><span style="color: #000000; font-weight: bold;">exist</span></a> &quot;<span style="color: #33cc33;">%</span><span style="color: #33cc33;">%</span>~$PATH:g&quot; <a href="http://www.ss64.com/nt/set.html"><span style="color: #b1b100; font-weight: bold;">set</span></a> WF=<span style="color: #33cc33;">%</span><span style="color: #33cc33;">%</span>~$PATH:g<span style="color: #33cc33;">))</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: Store the Help Error message</span><br />
<br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/not.html"><span style="color: #000000; font-weight: bold;">NOT</span></a> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~x1</span>&quot;==&quot;&quot; <a href="http://www.ss64.com/nt/goto.html"><span style="color: #00b100; font-weight: bold;">goto</span></a>:END<br />
<a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> /f &quot;delims=.&quot; <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #33cc33;">(</span>'help.exe *'<span style="color: #33cc33;">)</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <a href="http://www.ss64.com/nt/set.html"><span style="color: #b1b100; font-weight: bold;">set</span></a> HlpErr=<span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: If command missing from Help, goto end</span><br />
<br />
help.exe &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span>&quot; <span style="color: #33cc33;">|</span>find &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">HlpErr</span><span style="color: #33cc33;">%</span>&quot;<span style="color: #33cc33;">&amp;</span>gt;<a href="http://www.ss64.com/nt/nul.html"><span style="color: #0000ff; font-weight: bold;">nul</span></a> <span style="color: #33cc33;">&amp;</span>amp;<span style="color: #33cc33;">&amp;</span>amp; <a href="http://www.ss64.com/nt/goto.html"><span style="color: #00b100; font-weight: bold;">goto</span></a>:END<br />
<span style="color: #b100b1; font-style: italic;"><br />
:: Listed in help so find file in System32</span><br />
<br />
<a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #33cc33;">(</span>exe com<span style="color: #33cc33;">)</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <span style="color: #33cc33;">(</span><br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> /i &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">WF</span><span style="color: #33cc33;">%</span>&quot;==&quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">windir</span><span style="color: #33cc33;">%</span>\system32\<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span>.<span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span>&quot; <a href="http://www.ss64.com/nt/goto.html"><span style="color: #00b100; font-weight: bold;">goto</span></a>:END<span style="color: #33cc33;">)</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: File not in System32, so must be an internal command</span><br />
<br />
<a href="http://www.ss64.com/nt/set.html"><span style="color: #b1b100; font-weight: bold;">set</span></a> WF=&quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span>&quot; is an internal command<br />
<br />
:<span style="color: #b100b1; font-weight: bold;">END</span><br />
<a href="http://www.ss64.com/nt/if.html"><span style="color: #00b100; font-weight: bold;">if</span></a> <a href="http://www.ss64.com/nt/defined.html"><span style="color: #000000; font-weight: bold;">defined</span></a> WF <span style="color: #33cc33;">(</span><a href="http://www.ss64.com/nt/echo.html"><span style="color: #b1b100; font-weight: bold;">echo</span></a>.<span style="color: #33cc33;">%</span><span style="color: #448888;">WF</span><span style="color: #33cc33;">%)</span> <a href="http://www.ss64.com/nt/else.html"><span style="color: #00b100; font-weight: bold;">else</span></a> <span style="color: #33cc33;">(</span><br />
<a href="http://www.ss64.com/nt/echo.html"><span style="color: #b1b100; font-weight: bold;">echo</span></a> The file: &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">~1</span>&quot; was <a href="http://www.ss64.com/nt/not.html"><span style="color: #000000; font-weight: bold;">not</span></a> found<span style="color: #33cc33;">)</span><br />
<span style="color: #b100b1; font-style: italic;"><br />
:: Credits:</span><br />
<span style="color: #b100b1; font-style: italic;">:: Clay Calvert</span><br />
<span style="color: #b100b1; font-style: italic;">:: alt.msdos.batch.nt</span></div></div>
<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="zare366"><div style="float:left; width:100px; " class="zare366_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.memosoup.com%2F20090921%2Fwhich-command-for-dos.html&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="zare366_google1"> 
				<g:plusone size="medium" href="http://www.memosoup.com/20090921/which-command-for-dos.html" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="zare366_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
					data-text="WHICH command for DOS" data-url="http://www.memosoup.com/20090921/which-command-for-dos.html">Tweet</a> 
			</div></div>
		<div style="display:none;"><a href="http://www.news365live.com">news and informations</a>&nbsp;<a href="http://news365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a><a href="http://worldnews365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a></div><div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20090921/which-command-for-dos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start sqlplus in Windows .BAT script</title>
		<link>http://www.memosoup.com/20090825/start-sqlplus-in-windows-bat-script.html</link>
		<comments>http://www.memosoup.com/20090825/start-sqlplus-in-windows-bat-script.html#comments</comments>
		<pubDate>Mon, 24 Aug 2009 22:37:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows & DOS]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=19</guid>
		<description><![CDATA[<p>Here is the example of emulating &#8220;HERE-documents&#8221; in Windows shell.</p> @ECHO OFF FIND &#34;/*%none% some_label&#34; &#60;%0 &#124;sqlplus USER/PASS@SERVER GOTO end : ----------- embedded SQL------------------------- /* some_label */ select count(*) from dba_free_space; /* some_label */ select tablespace_name from dba_tablespaces; : ----------- end of embedded SQL------------------------- :end <p>It&#8217;s also possible to use procedures in .bat files. %none% [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the example of emulating <strong>&#8220;HERE-documents&#8221;</strong> in Windows shell.</p>
<div class="codecolorer-container dos default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #33cc33;">@</span><a href="http://www.ss64.com/nt/echo.html"><span style="color: #b1b100; font-weight: bold;">ECHO</span></a> OFF <br />
<br />
FIND &quot;/*<span style="color: #33cc33;">%</span><span style="color: #448888;">none</span><span style="color: #33cc33;">%</span> some_label&quot; <span style="color: #33cc33;">&lt;%</span><span style="color: #448888;">0</span> <span style="color: #33cc33;">|</span>sqlplus USER/PASS<span style="color: #33cc33;">@</span>SERVER <br />
<br />
<a href="http://www.ss64.com/nt/goto.html"><span style="color: #00b100; font-weight: bold;">GOTO</span></a> end <br />
<br />
: <span style="color: #b100b1; font-weight: bold;">-----------</span> embedded SQL------------------------- <br />
<br />
/* some_label */ select count<span style="color: #33cc33;">(</span>*<span style="color: #33cc33;">)</span> from dba_free_space; <br />
/* some_label */ select tablespace_name from dba_tablespaces; <br />
<br />
: <span style="color: #b100b1; font-weight: bold;">-----------</span> end of embedded SQL------------------------- <br />
<br />
:<span style="color: #b100b1; font-weight: bold;">end</span></div></div>
<p>It&#8217;s also possible to use procedures in .bat files.<br />
%none% is replaced by empty string.<br />
Spaces are mandadory in &#8220;/* some_label */&#8221;  string.</p>
<p>Another possibility:</p>
<div class="codecolorer-container dos default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #33cc33;">@(</span><br />
<a href="http://www.ss64.com/nt/echo.html"><span style="color: #b1b100; font-weight: bold;">echo</span></a> select global_name from global_name ;<br />
<span style="color: #33cc33;">)</span> <span style="color: #33cc33;">|</span> sqlplus USER/PASS<span style="color: #33cc33;">@</span>SERVER</div></div>

<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="zare366"><div style="float:left; width:100px; " class="zare366_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.memosoup.com%2F20090825%2Fstart-sqlplus-in-windows-bat-script.html&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="zare366_google1"> 
				<g:plusone size="medium" href="http://www.memosoup.com/20090825/start-sqlplus-in-windows-bat-script.html" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="zare366_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
					data-text="Start sqlplus in Windows .BAT script" data-url="http://www.memosoup.com/20090825/start-sqlplus-in-windows-bat-script.html">Tweet</a> 
			</div></div>
		<div style="display:none;"><a href="http://www.news365live.com">news and informations</a>&nbsp;<a href="http://news365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a><a href="http://worldnews365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a></div><div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20090825/start-sqlplus-in-windows-bat-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

