<?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=15200&amp;type=atom" />
	<updated>2020-02-25T19:54:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15200</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138030#p138030" />
			<content type="html"><![CDATA[<p>serzh82saratov, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[димитрий2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39571</uri>
			</author>
			<updated>2020-02-25T19:54:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138030#p138030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138018#p138018" />
			<content type="html"><![CDATA[<p>Почему по таймеру, также в цикле можно оставить.<br /></p><div class="codebox"><pre><code>
processNames := [&quot;notepad.exe&quot;, &quot;iewtool.exe&quot;] 

Loop {
	For k, Name in processNames
	{
		Process, Exist, %Name%
		If ErrorLevel
			Process, Close, %ErrorLevel%
	}
	Sleep 100
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-25T17:54:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138018#p138018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138005#p138005" />
			<content type="html"><![CDATA[<p>Для нескольких можно проверять по таймеру, существует ли один или другой процесс, если существует — закрывать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-02-24T23:00:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138005#p138005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138004#p138004" />
			<content type="html"><![CDATA[<p>teadrinker, спасибо - все работает.</p><p>А как сделать, чтобы нескольким процессам скрипт не давал открыться?<br />Я делаю вот так, но не работает.<br /></p><div class="codebox"><pre><code>
processName := &quot;notepad.exe&quot;
processName2 := &quot;iewtool.exe&quot;
Loop {
   Process, Wait, %processName%
   Process, Wait, %processName2%
   Process, Close, %processName%
   Process, Close, %processName2%
   Process, WaitClose, %processName%
   Process, WaitClose, %processName2%
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[димитрий2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39571</uri>
			</author>
			<updated>2020-02-24T22:20:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138004#p138004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137982#p137982" />
			<content type="html"><![CDATA[<p>teadrinker, понял. <br />Буду тестировать.</p>]]></content>
			<author>
				<name><![CDATA[димитрий2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39571</uri>
			</author>
			<updated>2020-02-24T18:11:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137982#p137982</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137975#p137975" />
			<content type="html"><![CDATA[<p>Если это единственное, что должен делать скрипт, можно так попробовать:<br /></p><div class="codebox"><pre><code>processName := &quot;iewtool.exe&quot;
Loop {
   Process, Wait, %processName%
   Process, Close, %processName%
   Process, WaitClose, %processName%
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-02-24T11:38:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137975#p137975</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137970#p137970" />
			<content type="html"><![CDATA[<p>Столько минусов, а поиском воспользоваться еще не научились. Ищите тему: AHK: можно ли исп-ть OnMessage() для отслеживания процессов?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-02-24T07:12:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137970#p137970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Закрытие процесса, если он появляется]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137968#p137968" />
			<content type="html"><![CDATA[<p>Доброго времени суток.<br />Помогите решить проблему.</p><p>Как скриптом autohotkey, который постоянно висит в трее - автоматически закрывать процесс под названием &quot;iewtool.exe&quot;, если он вдруг появится.</p>]]></content>
			<author>
				<name><![CDATA[димитрий2]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39571</uri>
			</author>
			<updated>2020-02-24T00:28:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137968#p137968</id>
		</entry>
</feed>
