<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: автоматическая запись ключа реестра]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5753&amp;type=atom" />
	<updated>2011-04-26T13:32:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5753</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: автоматическая запись ключа реестра]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47839#p47839" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DaVinchi пишет:</cite><blockquote><p>В принципе я настырно решил сам разобраться с RegWrite</p></blockquote></div><p>О, абсолютно верное решение, слова не мальчика, но мужа. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2011-04-26T13:32:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47839#p47839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: автоматическая запись ключа реестра]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47838#p47838" />
			<content type="html"><![CDATA[<p>В принципе я настырно решил сам разобраться с RegWrite и получилось как раз то, что я ищу<br /></p><div class="codebox"><pre><code>RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, Test1, C:\1.exe
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, Test2, C:\2.exe
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, Test3, C:\3.exe</code></pre></div><p>После же решил почитать и вникнуть в пример приведенный <strong>teadrinker</strong> и подумал, что мне надо аж на 3 файла скрипт, а с тяжелым скриптом мне еще плохо работается <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />. Да и с параметрами у меня немного не сложились отношения, я их не знаю <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-26T13:08:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47838#p47838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: автоматическая запись ключа реестра]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47837#p47837" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><div class="quotebox"><cite>DaVinchi пишет:</cite><blockquote><p>в bat мне сказали, это будет примерно так выглядеть:</p></blockquote></div><p>Неправильно сказали, все три параметра имеют одно и то же имя — &quot;1.exe&quot;.</p></blockquote></div><p>Это я ошибся, когда печатал. На самом деле параметры разные, 1.ехе, 2.ехе, 3.ехе.</p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-26T12:18:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47837#p47837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: автоматическая запись ключа реестра]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47836#p47836" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DaVinchi пишет:</cite><blockquote><p>в bat мне сказали, это будет примерно так выглядеть:</p></blockquote></div><p>Неправильно сказали, все три параметра имеют одно и то же имя — &quot;1.exe&quot;.<br />Пример добавления файла в автозагрузку:<br /></p><div class="codebox"><pre><code>FilePath =   ; указать путь к exe-файлу
AutoloadRegWrite(FilePath)
Return

AutoloadRegWrite(FilePath, Parameters = &quot;&quot;)
{
   SplitPath, FilePath, OutFileName
   RegWrite, REG_SZ, HKLM
           , Software\Microsoft\Windows\CurrentVersion\Run
           , % OutFileName
           , % &quot;&quot;&quot;&quot; . FilePath . &quot;&quot;&quot;&quot; . (Parameters = &quot;&quot; ? &quot;&quot; : &quot; &quot; . Parameters)
}</code></pre></div><p>Если нужно поместить в автозагрузку скрипт AHK, то в качестве FilePath указывается путь к исполнимому файлу AutoHotkey.exe, а путь к скрипту в качестве параметра.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-26T11:01:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47836#p47836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: автоматическая запись ключа реестра]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47834#p47834" />
			<content type="html"><![CDATA[<p>Хотелось бы создать скрипт записывающий в реестр, автозагрузку для файлов 1.ехе, 2.ехе, 3.ехе.<br />Т.е. в bat мне сказали, это будет примерно так выглядеть:<br /></p><div class="codebox"><pre><code>Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v &quot;1.exe&quot; /t REG_SZ /d С:\1.exe /f
Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v &quot;1.exe&quot; /t REG_SZ /d С:\2.exe /f
Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v &quot;1.exe&quot; /t REG_SZ /d С:\3.exe /f</code></pre></div><p>Но так как меня не интересует бат, хочется познакомиться ближе с AHK, то прошу дать нужный курс для познания.<br />З.ы. Гуглил, но нашел абсолютно отличающиеся темы от моей.<br />З.ы.ы. RegWrite смотрел, но немного не разобрался как записать правильно приведенные выше записи. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-26T09:23:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47834#p47834</id>
		</entry>
</feed>
