<?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=14267&amp;type=atom" />
	<updated>2018-10-21T23:21:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14267</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: скрипт два раза повторяет действие после выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129348#p129348" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong> Спасибо, все заработало</p>]]></content>
			<author>
				<name><![CDATA[BinaryEx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39584</uri>
			</author>
			<updated>2018-10-21T23:21:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129348#p129348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: скрипт два раза повторяет действие после выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129331#p129331" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>$F2::
T := !T
Loop:
If !T
	{
		SoundPlay, C:\sound\off.wav ;звук отключения
		return
	}
	Random, Rand, 25,112
	sleep, Rand
	Send, 1
	SoundPlay, C:\sound\tikc.wav
	Random, Rand, 8795,10323
	sleep, Rand
    if T
	  SetTimer, Loop, -1
    Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2018-10-21T05:23:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129331#p129331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: скрипт два раза повторяет действие после выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129330#p129330" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>$F2::
T := !T
Loop:
If !T
	{
		SoundPlay, C:\sound\off.wav ;звук отключения
		return
	}
	Random, Rand, 25,112
	sleep, Rand
	Send, 1
	SoundPlay, C:\sound\tikc.wav
	Random, Rand, 8795,10323
	sleep, Rand
	SetTimer, Loop, -1
    Return</code></pre></div><p>Есть такой скрипт, включается и отключается на одну кнопку, при работе посылает &quot;1&quot; и звук с определенной задержкой. Проблема заключается в том, что звук отключения срабатывает два раза.</p>]]></content>
			<author>
				<name><![CDATA[BinaryEx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39584</uri>
			</author>
			<updated>2018-10-20T20:23:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129330#p129330</id>
		</entry>
</feed>
