<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=18403&amp;type=atom" />
	<updated>2025-03-17T04:15:46Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=18403</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите пожалуйста добавить звуковое сопровождение моему скрипту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162110#p162110" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, большое спасибо за новый скрипт!<br />Всё работает!)</p>]]></content>
			<author>
				<name><![CDATA[Tradus]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42898</uri>
			</author>
			<updated>2025-03-17T04:15:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162110#p162110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите пожалуйста добавить звуковое сопровождение моему скрипту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162109#p162109" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Home::
fn(isTimer := false) {
    static toggle := false, timer := Func(&quot;fn&quot;).Bind(true)
    if isTimer {
        Send {Enter}
    } else {
        SetTimer % timer, % (toggle ^= 1) ? 600 : &quot;Off&quot;
        file := toggle ? &quot;Windows Logon.wav&quot; : &quot;Windows Notify System Generic.wav&quot;
        SoundPlay %A_WinDir%\Media\%file%
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-03-16T20:09:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162109#p162109</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Помогите пожалуйста добавить звуковое сопровождение моему скрипту]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=162104#p162104" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br />Имеется очень простой скрипт, который запускает бесконечное нажатие клавиши Enter, включается и отключается клавишей Home<br /></p><div class="codebox"><pre><code>Pause
Loop {
  Send {Enter}
  Sleep 600
}
Home::Pause</code></pre></div><p>Мне нужна ваша помощь!) <br />Я очень хочу слышать когда включаю и когда отключаю скрипт.<br />Допустим при снятии с паузы нужно воспроизвести<br /></p><div class="codebox"><pre><code>SoundPlay, %A_WinDir%\Media\Windows Logon.wav</code></pre></div><p>А когда я ставлю скрипт на паузу, должен звучать<br /></p><div class="codebox"><pre><code>SoundPlay, %A_WinDir%\Media\Windows Notify System Generic.wav</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Tradus]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42898</uri>
			</author>
			<updated>2025-03-16T04:36:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=162104#p162104</id>
		</entry>
</feed>
