<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: проигрывание звука при включении и Suspende скрипта]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5047&amp;type=atom" />
	<updated>2010-10-17T17:58:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5047</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40527#p40527" />
			<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>2010-10-17T17:58:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40527#p40527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40511#p40511" />
			<content type="html"><![CDATA[<p>Спасибо огромное! 1&nbsp; предложенный скрипт отлично работает.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2010-10-17T07:45:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40511#p40511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40509#p40509" />
			<content type="html"><![CDATA[<p>Ну, или так:<br /></p><div class="codebox"><pre><code>$*Mbutton::
   Suspend
   SoundPlay, % A_IsSuspended ? &quot;*64&quot; : &quot;*16&quot;
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-17T06:18:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40509#p40509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40508#p40508" />
			<content type="html"><![CDATA[<p>Я бы так написал:<br /></p><div class="codebox"><pre><code>$*Mbutton::
    Suspend
    If A_IsSuspended
        SoundPlay, *64
    Else
        SoundPlay, *16
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-17T06:15:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40508#p40508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40507#p40507" />
			<content type="html"><![CDATA[<p>Порядок имеет значение. Что-нибудь вроде этого.<br /></p><div class="codebox"><pre><code>$*Mbutton::
    Suspend
    If not SuspendOn
    {
        SuspendOn = 1
        SoundPlay, F:\Windows.wav
    }
    Else
    {
        SuspendOn = 0
        SoundPlay, F:\SomeSound.wav
    }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2010-10-17T03:51:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40507#p40507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: проигрывание звука при включении и Suspende скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40506#p40506" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>$*Mbutton:: 
{SoundPlay, F:\Windows.wav
sleep, 30
Suspend
}</code></pre></div><p>Вот что сам смог написать. Проигрывается звук и скрипт саспендится. После этого я не могу включить скрипт этой же кнопкой. Нужно, чтобы при саспенде скрипта проигрывался 1 звук, а при включении скрипта обратно проигрывался уже другой звук.<br />Помогите, пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[sergeant.coolagin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25809</uri>
			</author>
			<updated>2010-10-17T00:12:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40506#p40506</id>
		</entry>
</feed>
