<?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=11264&amp;type=atom" />
	<updated>2016-01-27T18:31:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11264</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрыть скрипты с помощью скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100696#p100696" />
			<content type="html"><![CDATA[<p>Спасибо работает.</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-01-27T18:31:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100696#p100696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрыть скрипты с помощью скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100694#p100694" />
			<content type="html"><![CDATA[<p>Тьфу ты... ошибся, пора отдыхать.<br />Вот:<br /></p><div class="codebox"><pre><code>loop,5
  Process, close,% Pid%a_index% ; здесь был 1 лишний знак %
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-01-27T18:20:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100694#p100694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрыть скрипты с помощью скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100693#p100693" />
			<content type="html"><![CDATA[<p>Все равно процессы скриптов не завершаются. Ничего не происходит.<br />Если так то работает, но надо как выше.<br /></p><div class="codebox"><pre><code>Process, close, %Pid1%
Process, close, %Pid2% 
Process, close, %Pid3% 
Process, close, %Pid4% 
Process, close, %Pid5%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-01-27T17:57:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100693#p100693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрыть скрипты с помощью скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100692#p100692" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
F2::
Goto, Runscript
return

F3::
Goto, Close
return

Runscript:
loop,5
  Run, Ped%a_index%.ahk, , , Pid%a_index%
return

Close:
loop,5
  Process, close,Pid%a_index% ; здесь были лишние знаки %
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2016-01-27T17:46:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100692#p100692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Закрыть скрипты с помощью скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100691#p100691" />
			<content type="html"><![CDATA[<p>Добрый вечер. Помогите пожалуйста. У меня есть 5 скриптов:<br />Ped1.ahk<br />Ped2.ahk<br />Ped3.ahk<br />Ped4.ahk<br />Ped5.ahk<br />и основной скрипт.</p><div class="codebox"><pre><code>
F2::
Goto, Runscript
return

F3::
Goto, Close
return

Runscript:
i := 1

While (i &lt;= 5) {
Run, Ped%i%.ahk, , , Pid%i%
i++
}
return

Close:
k := 1

While (k &lt;= 5) {
Process, close, %Pid%%k%
k++
}
return
</code></pre></div><p>Когда нажимаю F2 то скрипты запускаются, но когда жму F3&nbsp; скрипты не закрываются. Мне нужно закрыть процессы скриптов именно таким способом. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-01-27T17:41:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100691#p100691</id>
		</entry>
</feed>
