<?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=6349&amp;type=atom" />
	<updated>2011-10-22T17:41:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6349</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: параллельный процесс (комманда)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52800#p52800" />
			<content type="html"><![CDATA[<p>Странно. Работает на всех документах кроме одного, на котором я и проверял настройки.</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-10-22T17:41:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52800#p52800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: параллельный процесс (комманда)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52798#p52798" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Вадим пишет:</cite><blockquote><p>Подскажите, где именно.</p></blockquote></div><p>Edit-&gt;Preferences-&gt;Documents-&gt;Restore last view settings when reopening documents</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2011-10-22T17:35:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52798#p52798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: параллельный процесс (комманда)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52796#p52796" />
			<content type="html"><![CDATA[<p>Подскажите, где именно.</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-10-22T17:09:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52796#p52796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: параллельный процесс (комманда)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52795#p52795" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Вадим пишет:</cite><blockquote><p>Скрипт, который запоминает номер страницы в Адобе Ридер, записывает в файл, а при открытии открывает ее(страницу). Разумеется учитывается название документа.</p></blockquote></div><p>А может проще в настройках программы поставить соответствующую галочку? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2011-10-22T16:43:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52795#p52795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: параллельный процесс (комманда)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52794#p52794" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>way = d:\adobehistory\
process, wait, AcroRd32.exe
loop
	{
	if (ErrorLevel&lt;&gt;0)
		{
		sleep, 3000
		WinGetTitle, title, A
		ifexist, %way%%title%.txt
			{
			sleep, 100
			FileRead, number, %way%%title%.txt
			ControlSetText,Edit2, %number%, A
			ControlSend, Edit2, {enter}, A			
			}
		}
	loop
		{
		label:
		sleep 1000
		WinGetTitle, title2, ahk_class AcrobatSDIWindow
		ControlGetText, number2, Edit2, ahk_class AcrobatSDIWindow
		filedelete, %way%%title2%.txt
		FileAppend, %number2%, %way%%title2%.txt
		Process, waitclose, AcroRd32.exe
		if (ErrorLevel=0)
		Reload
		}
	}</code></pre></div><p>Скрипт, который запоминает номер страницы в Адобе Ридер, записывает в файл, а при открытии открывает ее(страницу). Разумеется учитывается название документа. <br />Вопрос: есть строки:<br /></p><div class="codebox"><pre><code>FileAppend, %number2%, %way%%title2%.txt
		Process, waitclose, AcroRd32.exe
		if (ErrorLevel=0)
		Reload</code></pre></div><p>Мне нужно чтобы команда Process, waitclose, AcroRd32.exe работала параллельно. Ато получается, что цикл останавливается. Или можно как-то обойти? Возможно есть советы для улучшения?</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-10-22T16:21:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52794#p52794</id>
		</entry>
</feed>
