<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Закрытие процесса если нет активного окна]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13489&amp;type=atom" />
	<updated>2018-02-25T20:36:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13489</id>
		<entry>
			<title type="html"><![CDATA[Re: Закрытие процесса если нет активного окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123829#p123829" />
			<content type="html"><![CDATA[<p>Непонятно, нужно открытое активное окно или запущенный процесс? Если процесс, то вот:<br /></p><div class="codebox"><pre><code>Loop {
Process, Wait, calc.exe
Process, Exist, notepad.exe
if ErrorLevel
WinWaitClose ahk_class Notepad
Process, Close, calc.exe
if ErrorLevel = 0
Process, Close, calc.exe
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-02-25T20:36:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123829#p123829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Закрытие процесса если нет активного окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123826#p123826" />
			<content type="html"><![CDATA[<p>Добрый вечер форум, нужна ваша помощь, нужно так чтобы процесс не запускался до того как не откроется нужный процесс для запуска<br />(кто не понял.. объясняю)</p><p>допустим для открытия калькулятора нужен открытый блокнот..<br />открыт блокнот - при запуске калькулятора от откроется<br />закрыт блокнот - калькулятор не будет открываться до того момента пока не откроется активное окно с блокнотом</p><p>(моя попытка ниже, не совсем понял суть этой функции не стал внедряться в подробности, нужна ваша помощь)</p><p>IfWinExist, GAME<br />&nbsp; &nbsp; WinKill <br />else<br />&nbsp; &nbsp; WinKill, everykill.exe</p>]]></content>
			<author>
				<name><![CDATA[qwerqwerqwerr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38895</uri>
			</author>
			<updated>2018-02-25T17:59:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123826#p123826</id>
		</entry>
</feed>
