<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Выход из скрипта после закрытия программы]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16887</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16887&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Выход из скрипта после закрытия программы».]]></description>
		<lastBuildDate>Mon, 17 Jan 2022 17:38:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151679#p151679</link>
			<description><![CDATA[<div class="quotebox"><cite>Taveron пишет:</cite><blockquote><p>Тут достаточно использовать RunWait.<br /></p><div class="codebox"><pre><code>
RunWait, Excel.exe
</code></pre></div></blockquote></div><p>RunWait не работает с &quot;.cmd&quot; ((</p>]]></description>
			<author><![CDATA[null@example.com (stuermer)]]></author>
			<pubDate>Mon, 17 Jan 2022 17:38:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151679#p151679</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151665#p151665</link>
			<description><![CDATA[<p>Такой вариант:<br /></p><div class="codebox"><pre><code>;Нужно запустить программу из скрипта
IfWinNotExist, Блокнот ;(&quot;ahk_class XLMAIN&quot;)
Run, notepad.exe
Sleep, 5000 ;Пять секунд ожидает запуска программы
SetTimer, MyTimer, 500
Return

MyTimer:
;выйти из скрипта после закрытия Excel вручную
IfWinNotExist, Блокнот ;(&quot;ahk_class XLMAIN&quot;)
ExitApp
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sat, 15 Jan 2022 19:00:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151665#p151665</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151664#p151664</link>
			<description><![CDATA[<p>Тут достаточно использовать RunWait.<br /></p><div class="codebox"><pre><code>
RunWait, Excel.exe
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Taveron)]]></author>
			<pubDate>Sat, 15 Jan 2022 18:51:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151664#p151664</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Выход из скрипта после закрытия программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=151663#p151663</link>
			<description><![CDATA[<p>Добрый день.</p><p>Нужно запустить Excel из скрипта и выйти из скрипта после закрытия Excel вручную. Я сделал так, но не выгружает скрипт:<br /></p><div class="codebox"><pre><code>
Run Excel.exe

#IfWinActive ahk_class XLMAIN
	LCtrl &amp; p::
	Sleep 1000
#IfWinActive

If not WinExist(&quot;ahk_class XLMAIN&quot;)
	ExitApp
	</code></pre></div><p>Что не так?</p>]]></description>
			<author><![CDATA[null@example.com (stuermer)]]></author>
			<pubDate>Sat, 15 Jan 2022 18:08:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=151663#p151663</guid>
		</item>
	</channel>
</rss>
