<?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=16887&amp;type=atom" />
	<updated>2022-01-17T17:38:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16887</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151679#p151679" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2022-01-17T17:38:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151679#p151679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151665#p151665" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2022-01-15T19:00:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151665#p151665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выход из скрипта после закрытия программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151664#p151664" />
			<content type="html"><![CDATA[<p>Тут достаточно использовать RunWait.<br /></p><div class="codebox"><pre><code>
RunWait, Excel.exe
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Taveron]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41949</uri>
			</author>
			<updated>2022-01-15T18:51:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151664#p151664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Выход из скрипта после закрытия программы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151663#p151663" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2022-01-15T18:08:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151663#p151663</id>
		</entry>
</feed>
