<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Рабочая папка скрипта с GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8754&amp;type=atom" />
	<updated>2013-10-11T02:44:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8754</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75940#p75940" />
			<content type="html"><![CDATA[<p>Да, действительно есть разница. Но это уже вопрос к разработчику АНК.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-10-11T02:44:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75940#p75940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75931#p75931" />
			<content type="html"><![CDATA[<p>Ну если мы создадим простой скрипт:<br /></p><div class="codebox"><pre><code>FileAppend, test, test.txt</code></pre></div><p>И перенесем в него файл из другой дтректории, то test.txt создастся в той директории, из которой был перенесен файл.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-10-10T15:58:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75931#p75931</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75926#p75926" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>Переиначу вопрос, почему в случае с Gui:&nbsp; A _WorkingDir = A_ScriptDir ?</p></blockquote></div><p>А как должно быть? И при чём тут Gui? Что оно меняет?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-10-10T14:15:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75926#p75926</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75925#p75925" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Валентина Гаврикова, Николай Козлов пишет:</cite><blockquote><p><em>A_WorkingDir</em><br />Текущий рабочий каталог скрипта, в котором файлы доступны по умолчанию. Конечный обратный слеш включается только в случае, если это корневой каталог. Два примера: C:\ и C:\Мои документы. Для изменения рабочего каталога используйте функцию SetWorkingDir. </p><p><em>A_ScriptDir</em><br />Полный путь к каталогу, где находится текущий скрипт. Ради совместимости с AutoIt v2, если скрипт исполняется в файле .aut, то к пути добавляется конечный слеш. Пример для .aut-скрипта: C:\My Documents\</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-10-10T13:42:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75925#p75925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75924#p75924" />
			<content type="html"><![CDATA[<p>OFF: Кто мне объяснит разницу между A _WorkingDir и A_ScriptDir?</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2013-10-10T12:21:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75924#p75924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75923#p75923" />
			<content type="html"><![CDATA[<p>Переиначу вопрос, почему в случае с Gui:&nbsp; A _WorkingDir = A_ScriptDir ?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-10-10T12:00:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75923#p75923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Рабочая папка скрипта с GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75909#p75909" />
			<content type="html"><![CDATA[<p>Имеется скрипт, который при перетаскивании в него файла1 создает файл2.<br /></p><div class="codebox"><pre><code>gui, add, text, y+20 w400, Drop files here.
gui, add, edit, readonly w400 h80 vstatus
gui, show,,50i
return

GuiDropFiles:
gui, submit, nohide
FileAppend, test, test.txt
Return

GuiClose:
GuiEscape:
ExitApp</code></pre></div><p>Как сделать так, чтобы он создавал файл2 в папке из которой мы переносим файл1? <br />Пока на ум приходит такое решение:<br /></p><div class="codebox"><pre><code>gui, add, text, y+20 w400, Drop files here.
gui, add, edit, readonly w400 h80 vstatus
gui, show,,50i
return

GuiDropFiles:
gui, submit, nohide
Loop, parse, A_GuiControlEvent, `n
   SplitPath, A_LoopField,, Dir
SetWorkingDir, %Dir%
FileAppend, test, test.txt
Return

GuiClose:
GuiEscape:
ExitApp</code></pre></div><p>Может можно проще?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2013-10-10T03:57:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75909#p75909</id>
		</entry>
</feed>
