<?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=12739&amp;type=atom" />
	<updated>2022-04-26T13:05:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12739</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152881#p152881" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Спасибо огромное, за помощь!</p>]]></content>
			<author>
				<name><![CDATA[nodurrr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42488</uri>
			</author>
			<updated>2022-04-26T13:05:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152881#p152881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152880#p152880" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>CapsLock::
   num := 1
   while FileExist(pathToSaveRec := A_Desktop . &quot;\record&quot; . num . &quot;.wav&quot;)
      num++
   Record()
   KeyWait, CapsLock
   Record(&quot;stop&quot;, pathToSaveRec)
   Return

Record(mode := &quot;start&quot;, filePath := &quot;&quot;)  {
   commands := { start: [&quot;open new type waveaudio alias recsound&quot;, &quot;record recsound&quot;]
               , stop:  [&quot;save recsound &quot; . filePath, &quot;close recsound&quot;] }
   for k, v in commands[mode]
      DllCall(&quot;Winmm\mciSendString&quot;, Str, v, Str, &quot;&quot;, UInt, 0, Ptr, 0)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-04-26T12:59:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152880#p152880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152879#p152879" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Почти получилось! создаються файлы, но надо перезагружать скрипт, чтобы файлы создавались, иначе последний перезаписываеться.</p>]]></content>
			<author>
				<name><![CDATA[nodurrr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42488</uri>
			</author>
			<updated>2022-04-26T12:53:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152879#p152879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152878#p152878" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>num := 1
while FileExist(pathToSaveRec := A_Desktop . &quot;\record&quot; . num . &quot;.wav&quot;)
   num++</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-04-26T12:38:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152878#p152878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152876#p152876" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Я пробовал менять путь и название, но у меня создаеться один файл с именем указынным в переменной pathToSaveRec, а как сделать так чтобы создавася каждый раз новый файл, например: record1.wav, record2.wav ...?</p>]]></content>
			<author>
				<name><![CDATA[nodurrr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42488</uri>
			</author>
			<updated>2022-04-26T12:30:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152876#p152876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152871#p152871" />
			<content type="html"><![CDATA[<p>Путь к файлу находится в переменной pathToSaveRec в самом начале скрипта. Замените на то, что вам удобно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-04-26T11:55:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152871#p152871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=152867#p152867" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>У меня вот как-то попроще вышло:<br /></p><div class="codebox"><pre><code>pathToSaveRec := A_Desktop . &quot;\record.wav&quot;  ; путь для сохранения записи

CapsLock::
   Record()
   KeyWait, CapsLock
   Record(&quot;stop&quot;, pathToSaveRec)
   Return

Record(mode := &quot;start&quot;, filePath := &quot;&quot;)  {
   commands := { start: [&quot;open new type waveaudio alias recsound&quot;, &quot;record recsound&quot;]
               , stop:  [&quot;save recsound &quot; . filePath, &quot;close recsound&quot;] }
   for k, v in commands[mode]
      DllCall(&quot;Winmm\mciSendString&quot;, Str, v, Str, &quot;&quot;, UInt, 0, Ptr, 0)
}</code></pre></div></blockquote></div><p>Добрый день! подскажите пожалуйста, как сделать так чтобы файл не перезаписывался, а создавался новый? Желательно чтобы имел время создания в названии.</p>]]></content>
			<author>
				<name><![CDATA[nodurrr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42488</uri>
			</author>
			<updated>2022-04-26T10:07:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=152867#p152867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151748#p151748" />
			<content type="html"><![CDATA[<p>Может, точно не знаю.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-01-22T15:23:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151748#p151748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151743#p151743" />
			<content type="html"><![CDATA[<p>Может условия для записи и микрофон хорошие, а может &quot;Кому и кобыла невеста&quot; (c).</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-01-22T14:53:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151743#p151743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151741#p151741" />
			<content type="html"><![CDATA[<p>Так я ничего не замечал, мне просто сказали, что звук чистый <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-01-22T14:47:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151741#p151741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151740#p151740" />
			<content type="html"><![CDATA[<p>Если вы имеете в виду мой скрипт, то я в нем не использовал Voice Capture DSP, а только Audio Resampler DSP.<br />Так что неудивительно, что вы не заметили разницы. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />))))))))))</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-01-22T14:43:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151740#p151740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151738#p151738" />
			<content type="html"><![CDATA[<p>Так уже был на форуме скрипт, который через Microsoft Media Foundation записывает звук.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-01-22T14:30:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151738#p151738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151737#p151737" />
			<content type="html"><![CDATA[<p>А в чем проверяли?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-01-22T14:28:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151737#p151737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151735#p151735" />
			<content type="html"><![CDATA[<p>Нет, проверить только.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2022-01-22T14:26:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151735#p151735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Запись с микрофона]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151734#p151734" />
			<content type="html"><![CDATA[<p>А вы уже код успели написать? <img src="//forum.script-coding.com/img/smilies/yikes.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2022-01-22T14:24:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151734#p151734</id>
		</entry>
</feed>
